测试案例:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cus="CustomNamespaces"><soapenv:Header/><soapenv:Body><cus:getUser><cus:in0><![CDATA[测试中文乱222码]]></cus:in0></cus:getUser></soapenv:Body>
</soapenv:Envelope>
解决方案:
编辑soapui.bat文件,在
set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties -Dgroovy.source.encoding=iso-8859-1 “-Dsoapui.home=%SOAPUI_HOME%” -splash:soapui-pro-splash.png 记录后面添加
-Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8
保存,再重启