I am new to Web Services & need some help on it.
I have a server which is providing SOAP based services using WSDL. I have used WSMakeStubs to generate the corresponding C++ code & integrated this code with the Core Services framework (For Web Services). Now I want to call the server service from my test application & there I am facing some problems. WSMakeStubs has generated a function like (static function) :
/*-
* VersionService::GetAPIVersion
*/
CFTypeRef VersionService::GetAPIVersionImmediate(CFTypeRef /* Complex type http://version.localhost.com|GetAPIVersion */ in_parameters)
{
VersionService::GetAPIVersion _invocation;
_invocation.setParameters(in_parameters);
return _invocation.copyResultValue();
}
Basically this is a version service. I am expecting return value a string like : "1.0". For that I am calling above function like :
CFTypeRef versionRef = VersionService::GetAPIVersionImmediate(CFSTR("
https://sjcpcommgw01.localhost.net:8443/Version/services/Version?wsdl"));
https://sjcpcommgw01.localhost.net:8443/Version/services/Version?wsdl is the location of the wsdl file. i am able to browse this in firefox without any problem, but I am always getting my versionRef as NULL. I am not able to figure out what is going wrong here.
Can you please have a look at above code & point out if it has any issues.