You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dimuthu Leelarathne <mu...@vijayaba.cse.mrt.ac.lk> on 2002/09/25 06:06:10 UTC

Re: Returning XML document from Service call

Cathol,

Message style services would help you . They have signatures as below. Read
about it in the user guide.

public Element [] method(Element [] bodies);
public SOAPBodyElement [] method (SOAPBodyElement [] bodies);
public Document method(Document body);
public void method(SOAPEnvelope req, SOAPEnvelope resp);

Regards,
Dimutu.

----- Original Message -----
From: Cathal O' Riordan
To: axis-user@ws.apache.org
Sent: Wednesday, September 24, 2003 9:20 PM
Subject: Returning XML document from Service call


I'd like to return an XML document from my web service.  I'm aware of the
various issues associated with serialisation and de-serialisation of complex
types and initially followed the Beanserialiser approach.  However, I found
that my XML document didn't follow a predictable format and couldn't be
described as an object or set of objects.  Is it possible to just return a
raw XML document from an Axis service and how is this done?

Regards,
C.





RE: Returning XML document from Service call

Posted by Cathal O' Riordan <co...@tssg.org>.
Can an org.w3c.dom.Document object be returned from an RPC style web
service using a similar convention as below? Does RPC only support the
use of objects to represent XML structures or can generic XML structures
(encapsulated in DOM objects) be returned? 

Regards,
C.



-----Original Message-----
From: Dimuthu Leelarathne [mailto:muthulee@vijayaba.cse.mrt.ac.lk] 
Sent: 25 September 2002 05:06
To: axis-user@ws.apache.org
Subject: Re: Returning XML document from Service call 

Cathol,

Message style services would help you . They have signatures as below.
Read
about it in the user guide.

public Element [] method(Element [] bodies);
public SOAPBodyElement [] method (SOAPBodyElement [] bodies);
public Document method(Document body);
public void method(SOAPEnvelope req, SOAPEnvelope resp);

Regards,
Dimutu.

----- Original Message -----
From: Cathal O' Riordan
To: axis-user@ws.apache.org
Sent: Wednesday, September 24, 2003 9:20 PM
Subject: Returning XML document from Service call


I'd like to return an XML document from my web service.  I'm aware of
the
various issues associated with serialisation and de-serialisation of
complex
types and initially followed the Beanserialiser approach.  However, I
found
that my XML document didn't follow a predictable format and couldn't be
described as an object or set of objects.  Is it possible to just return
a
raw XML document from an Axis service and how is this done?

Regards,
C.