开发者

Verify web service is available

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜