jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes Sending XML data in JAXWS Response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Sending XML data in JAXWS Response" Watch "Sending XML data in JAXWS Response" New topic
Author

Sending XML data in JAXWS Response

Sathiesh Kumar Vs
Ranch Hand

Joined: Oct 24, 2010
Posts: 31
Hi

I am using IBM JAX WS 2 on my WAS server and exposing a service. The purpose of this service is to send some data to the consumer, which I already have in my database in form of an XML. I just need to put this xml in the response and send it.
I want to avoid the JAXB Marshaling and marshaling here as I don't have to do anything else with the data.

So I am trying to directly place the XML to the JAXWS response. I was trying to use anyType, but my client doesn't want a anyType in their WSDL but they want a proper XSD.

Is there way I can create a payload and send as a response ? In that case how would my JAXB Service impl look like ? How to achieve this ?

Thanks and Regards,
Sathiesh.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending XML data in JAXWS Response
 
Similar Threads
anyType to JavaBean
how to return response from jaxb when validation fails
JAXB unmarshalling
learning WS by preping for exam
Jaxb, WASD and getting to the XML