Forums Register Login

when using jaxb,how to pass xml message as string

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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 ?
please buy this thing and then I get a fat cut of the action:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1981 times.
Similar Threads
Does jaxws 2.0 use JAXB for java object serialization?
getting null value from radio button
JAXB - Ordering of elements in generated XML
Jersey/JAXB: parsing xml response that has inner tags/elements
JAXB now or wait?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:42:48.