>From your post I take it you are using Axis 2 and are not using a data-binding?  E.g. XML Beans or JibX

If you use a data-binding you can convert the response in your client code into an XML string by doing a toString() on the XML Bean (I've done this with the XML Beans binding, am just assuming it works with the others also).

You specify to use a databinding when you generate your service and client side code using WSDL2Java.

Asensio, Rodrigo wrote:

Hello, My customer wants XML as response into the XML, he sent me his XSD file and my response have to be compliant with that. Until now I was returning beans as response, but, is it possible return raw XML as response ? or an Element Bean ?? what do you think ??

 

thanks

 

Rodrigo

This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law. If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system. If you
have any questions about this e-mail please notify the sender
immediately.



-- 

Anthony
------------------------------------- 
Anthony Bull
Senior Developer
Black Coffee Software Ltd
PO Box 10-192 The Terrace
Wellington, New Zealand
 
[EMAIL PROTECTED]
Ph  +64 4 472 8818
Fax +64 4 472 8811
------------------------------------- 
www.bcsoft.co.nz
--------------------------------------------------------------- 
This email may contain confidential or privileged information, 
and is intended for use only by the addressee, or addressees. 
If you are not the intended recipient please advise the sender 
immediately and do not copy, use or disclose the contents to 
any other person or organisation.
Black Coffee Software Ltd accepts no responsibility for viruses 
received with this email, or to any changes made to the original 
content. Any views or opinions expressed in this email may be
personal to the sender and are not necessarily those of Black 
Coffee Software Ltd.
--------------------------------------------------------------- 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to