-----Original Message-----
From: Oren Bar-El [mailto:[EMAIL PROTECTED]]
Sent: 10 April 2002 09:28
To: [EMAIL PROTECTED]
Subject: Connecting to .NET Document style web service with Apache SOAP 2.2Hi 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.
Title: Connecting to .NET Document style web service with Apache SOAP 2.2
A few
months ago I had some success with a .NET client and a Apache SOAP 2.2 Web
Service using the 'literal' encoding style. I used Castor and the .NET XML
Serializer to serialize/marshall the XML in the envolope into pre-generated
objects (from a shared WSDL) at each end. If you want some more details/sample
code on this just let me know. Cheers.
- Connecting to .NET Document style web service with Apache ... Oren Bar-El
- problem with installation cyril vidal
- Re: problem with installation cyril vidal
- Re: problem with installation Virender Sandhu
- Re: Connecting to .NET Document style web service wit... Andrew Fawcett
- Re: Connecting to .NET Document style web service... David B. Bitton
