Forum Discussion
Hey rkkandah
Just to be clear. Your responses RAW does NOT include the CDATA wrapper, but the XML tab does include content wrapped within the CDATA tag handler. Is that correct?
Have you tried toggling the pretty print responses checkbox option in your WSDL preferences? (e.g. Preferences >> WSDL >> 'Pretty Print response messages') Before now, I've seen escaped XML present as CDATA wrapped XML for a response and toggling the switch might reveal something. When I saw this when the switched was set to true, the response content appeared as:
<![CDATA[<Output>
<Parent>
<Child1>value1</Child1>
<Child2>value2</Child2>
</Parent>
</Output>]]>
When I toggled the checkbox to false, the response then appeared as follows:
<Output>
<Parent>
<Child1>value1</Child1>
<Child2>value2</Child2>
</Parent>
</Output>
thatis, toggling the switch revealed the content was actually escaped XML and did NOT in fact have a CDATA wrapper - it was just ReadyAPI! was presenting like this.
I understand our issues are different, but at least this would reveal the 'actual' details which should then match your RAW details exactly.
Once you've checked the pretty print option, I'd copy the content of the RAW out from SoapUI and paste into something like XMLSpy. Id suggest using a tool like XMLSpy rather than just picking something with an XML parser (like a browser) as its a lot more helpful.
At this point I'd consider the char set (the character encoding definition in your XML declaration (within the XML Prolog) and then do a wellformed check against the content of the XML.
Something in the response content is encouraging SoapUI to treat the response content like character data - after you've toggled the switch I'd then look at the content itself (just in case its something stupid like escaped XML). just cos you cant see any of the 5 XML entities escaped (<,>,",', or &) doesn't mean there arent any other 'dodgy' characters (probably beginning with an ampersand - e.g. etc.) that won't help your situation - but having these additional characters would be unlikely to force the inclusion of the CDATA wrapper into yoru response without you expecting it.
Please respond with your investigation - I'm intrigued to know what the issue actually is
nice one
rich
\z
Related Content
- 8 years ago
- 5 years ago
Recent Discussions
- 3 days ago