I have an AXIS2 SOAP webservice that correctly works with a Java client.
It's a webservice that receives an input string and returns an output string.
I used the
Web Service Toolkit to generate the stubs for a a Lazarus SOAP client.
Now calling the webservice works (AXIS2 logs the call) and the returned SOAP message is correctly received by the Lazarus webservice stub.
Unfortunately the generated stubs do not parse the SOAP message correctly.
The parser doesn't correctly parse namespaces in the soap Body.
This seems to be related to a problem already mentioned
here.
Is there a workaround for this problem?
I.e. is it possible to call an AXIS2 webservice with Lazarus?
<<update>>
The problem lies in the parser. The parser tries to resolve the namespace url in the response, but searches too high up in the tree. Below is the SOAP reply message:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:sayHelloResponse xmlns:ns="http://service.eny.com">
<ns:return>Howdy eny!</ns:return>
</ns:sayHelloResponse>
</soapenv:Body>
</soapenv:Envelope>The parser tries to resolve the namespace url "
http://service.eny.com".
But parsing starts with node <soapenv:Body> and then goes up.
Of course nothing is found then.