Forum Discussion
jramos
11 years agoNew Contributor
Hey guys, after a little investigation in the source code of SOAPUI 4.6.4, I found something interesting.
In WsdlLoader.java, Line 113, there is a call to readCleanWsdlFrom. This method calls XmlUtils.createXmlObject( new URL(url) ).xmlText(), which returns the XML text decoded from UTF-8 (or whatever encoding used) to standard UNICODE. After some text work, the method returns the XML string, maybe changed a little, to the caller.
At line 114, the string content (already in standard UNICODE) is loaded into a byte array and submitted (again) to XmlUtils.createXmlObject, which will try to parse an UTF-8 string from a buffer converted to standard UNICODE. Result: Load error.
I suspect this is a bug introduced by the above change from 4.6.3 to 4.6.4. In 4.6.3 there is only one call to XmlUtils.createXmlObject, and everything goes well.
Thanks,
Jorge Ramos
In WsdlLoader.java, Line 113, there is a call to readCleanWsdlFrom. This method calls XmlUtils.createXmlObject( new URL(url) ).xmlText(), which returns the XML text decoded from UTF-8 (or whatever encoding used) to standard UNICODE. After some text work, the method returns the XML string, maybe changed a little, to the caller.
At line 114, the string content (already in standard UNICODE) is loaded into a byte array and submitted (again) to XmlUtils.createXmlObject, which will try to parse an UTF-8 string from a buffer converted to standard UNICODE. Result: Load error.
I suspect this is a bug introduced by the above change from 4.6.3 to 4.6.4. In 4.6.3 there is only one call to XmlUtils.createXmlObject, and everything goes well.
Thanks,
Jorge Ramos
Related Content
- 6 years ago
Recent Discussions
- 6 days ago
- 11 days ago