You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Oren Bar-El <Or...@smarteam.com> on 2002/04/10 12:33:49 UTC

RE: Connecting to .NET Document style web service with Apache SOA P 2.2

Thanks for the response.
I would greatly appreciate more info and code samples.
 
Thanks,
Oren.

-----Original Message-----
From: Andrew Fawcett [mailto:Andrew.Fawcett@coda.com]
Sent: Wednesday, April 10, 2002 11:49 AM
To: 'soap-user@xml.apache.org'
Subject: RE: Connecting to .NET Document style web service with Apache SOA P 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.

-----Original Message-----
From: Oren Bar-El [mailto:Oren.Bar-el@smarteam.com]
Sent: 10 April 2002 09:28
To: soap-user@xml.apache.org
Subject: Connecting to .NET Document style web service with Apache SOAP 2.2



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.