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??
There are a couple of ways you could handle this -
<arg_1><sometag><somemoretag>abcd</somemoretag></sometag></arg_1>
<arg_1><sometag><somemoretag>abcd</somemoretag></sometag></arg_1>