Martin Fernau wrote: > Hi, > > I just successfully compiled my first simple soap client with gSOAP. > I can call a small webservice (server side is using axis2) which has no > return > type but can throw an exception. > I can successfully call the service. The server side receives the message and > response itself with the following: > > --- cut > <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope > xmlns:soapenv="http://www.w3.org/2003/05/soap- > envelope"><soapenv:Body><ns:setProgrammVersionResponse > xmlns:ns="http://kfzver.webservices.cpsnet.de"><ns:return > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" > /></ns:setProgrammVersionResponse></soapenv:Body></soapenv:Envelope> > --- cut > > As you can see, the return is just NIL because the method return type is > void. > But the gSOAP client seems to have some trouble to understand this. I'm > getting this error: > > --- cut > SOAP 1.2 fault: SOAP-ENV:Sender [no subcode] > "Validation constraint violation: tag name or namespace mismatch in element > <ns:setProgrammVersionResponse>" > Detail: [no detail] > --- cut > > How to fix this? > > Regards, > Martin Fernau
My recent post about anonymous param names includes a similar problem, and solution to it. Best, matt
