Vivek,
I am in the process of doing exactly what you want to do. I can answer some of your questions, and leave you with a 1 or 2 of my own regarding verifying .NET interoperability with the Axis Web Service.


Answers
#1) You can return a org.w3c.dom.Element object. It is automatically serialized. This is placed in the SOAP body. If you return org.w2c.dom.Document, this is returned in multiRef tags. This should be portable to .NET (but I have not verified how retrieve that return type in .NET). NuSOAP is almost a joke for a SOAP client library.. It has problems seeing the return type as just a literal XML DOM type.


#2) From above, just simply return a org.w3c.dom.Element. Lookup the Axis BeanSerializer for more complext types. Here is a page I found that has an example of complex types using the BeanSeializer - http://www-106.ibm.com/developerworks/webservices/library/ws-complex.html .


Is it possible for you to build a .NET client and have your Axis Web Service return the Element object so we can verify the interoperabilty of the return Type? I have been curious how to retrieve the Element with .NET....I am sure you can do this because I see alot of docs talking about retrieving XML documents with .NET web services... I do not have .NET installed to verify.


chris



From: "Vivek Nagulapati" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Working with XML DOM's
Date: Tue, 24 Feb 2004 21:06:28 -0600

Hello All,

My apologies if this question has been asked before but I couldnt find any relevant solutions on this topic.

I am trying to develop a web service which returns an XML Dom tree which is of type Document. Some of the clients are implemented on .NET technologies. My question is, is there any way we could return a Document object directly without serializing it into a string? Would there be any compatibility issues if my client returns a Document object directly?

Here are my follow-up questions on this topic

1. Do we have to write custom serializers and deserializers or could we utilize any of the Axis
(de)serializers ?


2. Can anyone point me to snippets/references/tutorials showing how to return user-defined complex object types in Axis?

3. If a String array is passed over the wire, how is its information encoded into XML? What is the underlying mechanism in axis?

Thanks all for your patience and time!

_________________________________________________________________
Get fast, reliable access with MSN 9 Dial-up. Click here for Special Offer! http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/



_________________________________________________________________
Watch high-quality video with fast playback at MSN Video. Free! http://click.atdmt.com/AVE/go/onm00200365ave/direct/01/




Reply via email to