Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

when using jaxb,how to pass xml message as string  RSS feed

 
Nevin kumar
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • 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.
 
Ravi C Kota
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • 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 ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!