3

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 default URL I should look for WSDL if service address is http://www.host.com/

Sergej Andrejev
  • 9,091
  • 11
  • 71
  • 108

5 Answers5

2

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.

A. L. Flanagan
  • 1,162
  • 8
  • 22
  • I was expecting that but hoped I would be wrong because in the end I got WSDL file only after almost two month of asking for it :( – Sergej Andrejev Jan 02 '10 at 17:09
  • Well, it makes no sense to create a web service, then not provide a WSDL. If you didn't want people to connect, why make it in the first place? But I see a lot of crazy stuff in this business. ;) – A. L. Flanagan Jan 05 '10 at 11:51
1

you just need to create a header file that contain definitions. http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc7.2.9

rostom
  • 11
  • 2
0

Need to implement the fget function for soap: http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc19.10

Lodle
  • 31,277
  • 19
  • 64
  • 91
0

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);
digz6666
  • 1,798
  • 1
  • 27
  • 37
-1

It would be something like:

http://www.host.com/Something.asmx?WSDL

ajdams
  • 2,276
  • 14
  • 20
  • If you would knew how to answer this answer or at least read the question you would know that the service is running on gSOAP and that is C++ library not .Net as you suggest. – Sergej Andrejev Nov 09 '09 at 08:16