I received url of web service running on gSOAP/2.7 (deciding from HTTP headers). The problem is they didn't provide me with WSDL file. Anybody knows which 开发者_如何学Pythondefault URL I should look for WSDL if service address is http://www.host.com/
Based on the gsoap documentation at http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc18.10, I'd say that gsoap doesn't automatically provide a way to get the WSDL file. It's a fairly low-level server, concentrating on being small and fast and leaving the fancy stuff for apache, etc. Now it's possible your provider implemented a way to serve the WSDL, (it's pretty simple), but the access method would be dependent on them, and not standard.
you just need to create a header file that contain definitions. http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc7.2.9
Need to implement the fget function for soap: http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc19.10
If you have the stub file you can generate WSDL file with following command:
soapcpp2.exe -i -C -Iimport gsoap.stub
You can get the soap2cpp2 tool with gsoap download.
Stub file is something like:
int ns1__executeCommand(char* command, char** result);
It would be something like:
http://www.host.com/Something.asmx?WSDL
精彩评论