I'm new to gSOAP and downloaded the package yesterday.
Although I managed quickly to compile client + server test applications, based 
on a simple wsdl, I'm stucking now within a nasty detail:

The server is not handling the request; the client answers with

D:\michi\webservicetest\currency\calcclient\Debug>calcclient.exe
Error -1 fault: SOAP-ENV:Client [no subcode]
"End of file or no input: Operation interrupted or timed out"
Detail: [no detail]

So I debugged the server.
The Request is coming as http post data as follows (I traced with a sniffer):

  <?xml version="1.0" encoding="UTF-8" ?> 
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:ns1="urn:calc">
  <SOAP-ENV:Header /> 
- <SOAP-ENV:Body 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
- <ns1:add>
  <a>2</a> 
  <b>3</b> 
  </ns1:add>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

But in the soapServer.c the function call to soap_body_begin_in(soap)
returns 6, menas some error, and therefore the request is not served.

                }

                if (soap_envelope_begin_in(soap)
                 || soap_recv_header(soap)
                 || soap_body_begin_in(soap) // !!!! returns 6
                 || soap_serve_request(soap) // would be served here 
                 || (soap->fserveloop && soap->fserveloop(soap)))
                {
#ifdef WITH_FASTCGI
                        soap_send_fault(soap);

...
...
...

I have no Idea, whats wrong and how to proceed.
For me it is like "not working", although I think it MUST work.

Would be great, if anybody can give me a hint!!!!!

--
Many many many Thanks,
Michael

PS:

If anybody is interested or needs more info, I could send the whole code, 
including the wsdl.

Reply via email to