Hi All,
I am looking for the best way to connect to .NET Document style web service using the Apache SOAP 2.2.
I tried doing it while staying out of the Apache code, but it seemed impossible, since the Apache code contains hard coded elements (like encodingStyle attribute, and namespace declarations) that prevent .NET from reading parameters.
Finally, I decided to copy several classes from the Apache SOAP into my project (AttributeHandler, Body, Call, Envelope, Response, RPCMessage, SOAPHTTPConnection, SOAPTransport), and make the necessary changes.
The only class I actually touched was the RPCMessage (marshall method), but I needed all the rest of them to get there...
After making the mentioned changes to RPCMessage, and creating and mapping a customized class to every method response, my client was able to access the .NET document style service (with .NET default Document style behaviour).
Note that except for the outgoing SOAP message (generated by the altered RPCMessage), the Apache SOAP still uses within itself the SOAP Encoding (for type mappings ect.).
I do not like this solution too much, but it is the easiest way I could find, and it actually works...
I also know that Apache's next SOAP version (Axis), which is at beta1 stage, has much better support for this, but I can't afford to wait for Axis release.
I was wondering if anybody has a better (or nicer) way to do this or just comment about this.
Thanks,
Oren.
