• 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

when using jaxb,how to pass xml message as string

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used jaxb earlier but there whatever input message I pass is an object which is same as my wsdl's input xsd so I don't have any
problem but now I had a web service which is expecting String as input message for a particular operation but that input String
is of nested xml elements,Considering the fact it's a huge set of nested xml elements I reckon I will use jaxb,but how to pass this object as an xml string.
I'm using spring ws 1.5

Typical spring ws client call looks like this.

Response1 response1 = (Response1) template.marshalSendAndReceive(url,request1);

Any guidance highly appreciated.
 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nevin kumar wrote:I used jaxb earlier but there whatever input message I pass is an object which is same as my wsdl's input xsd so I don't have any
problem but now I had a web service which is expecting String as input message for a particular operation but that input String
is of nested xml elements,Considering the fact it's a huge set of nested xml elements I reckon I will use jaxb,but how to pass this object as an xml string.
I'm using spring ws 1.5

Typical spring ws client call looks like this.

Response1 response1 = (Response1) template.marshalSendAndReceive(url,request1);

Any guidance highly appreciated.



Can you paste the xsd, or atleast the part of the xsd dealing with this problem and lets start from there ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic