• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sending XML data in JAXWS Response

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic