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
精彩评论