开发者

Verify web service is available

开发者 https://www.devze.com 2023-04-08 04:02 出处:网络
I have a C++ program that will be retrieving a url which specifies a wsdl.My program is simply middleware and doesn\'t perform any wsdl relat开发者_如何学Goed requests; it will literally read the data

I have a C++ program that will be retrieving a url which specifies a wsdl. My program is simply middleware and doesn't perform any wsdl relat开发者_如何学Goed requests; it will literally read the data and pass it on to whomever will use the url.

That being said, within Linux, can I test to see if the webservice is available within my code? A sort of a wsdl ping would be what I'm looking for.


use curl, ping the url, and check the response code. Look here for a bunch of libcurl examples


Just HTTP GET the WSDL. Or HEAD it.

If you use libcurl, here's the docs for it

0

精彩评论

暂无评论...
验证码 换一张
取 消