測試案例:
<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
保存,再重啓