Convert xml as string
Posted
by hakish
on Stack Overflow
See other posts from Stack Overflow
or by hakish
Published on 2010-03-27T04:54:44Z
Indexed on
2010/03/27
5:03 UTC
Read the original article
Hit count: 730
i have a scenario where in i need to send an xml as a tag content in a SOAP request message to a webservice for example
<arg_1><xml version="1.0" encoding="UTF-8"?><sometag><somemoretag>abcd</somemoretag></sometag></arg_1></code>
arg_1 happens to be an String parameter to a webservice. So i bring in a CDATA section for this
<arg_1><![CDATA[<xml version="1.0" encoding="UTF-8"?><sometag><somemoretag>abcd</somemoretag></sometag>]]></arg_1>
But this keeps throwing me an exception
org.xml.sax.SAXException: WSWS3084E: Error: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. Message being parsed:
I keep getting this exception. Has anyone seen this before??
© Stack Overflow or respective owner