I am not sure whether I understand your question correctly.
You can return "String" objects which is XML string contents.
For example, your POJO service can have the following;
public class MyPoJo {
public String xmlHello(String v) {
String xmlstring = "<hello>.....</hello>";
return xmlstring;
}
}
>From clinents, you just get XML as String as follows;
SOAPBody soapBody = sresponse.getSOAPBody();
SOAPElement node = (SOAPElement)soapBody.getFirstChild().getFirstChild();
String msg = node.getValue();
Note that you can XML contents as String for arguments as well. The rest
will
be taken care by service containers!
Hope this helps!
Gagan Sinha wrote:
>
>
>
> Hi
>
>
>
> I have hosted a simple webservice using AXIS 1.4 .
>
> The Java Method returns a ArrayList of ProductVO class.
>
>
>
> Can any one help me with the steps for returning my own Custom XML in the
> SOAP body? I.e. I need to replace the Axis generated SOAP body with my
> own.
>
>
>
> The need is urgent and any help would be highly appreciated.
>
>
>
> Thanks & Regards
>
> Gagan
>
>
>
>
>
>
>
>
>
--
View this message in context:
http://www.nabble.com/Steps-for-returning-Custom-SOAP-BODY-tf3982830.html#a11316918
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]