soapui加载天气预报接口报错Characters larger than 4 bytes are not supported: byte 0xb1 implies a length of more than 4 byte的解决办法

soapui加载天气预报接口时报错如下:

Error loading [http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl]: org.apache.xmlbeans.XmlException: java.io.CharConversionException: Characters larger than 4 bytes are not supported: byte 0xb1 implies a length of more than 4 byte

截图如下:

解决办法:

在soapui的安装目录下找到SoapUI-4.6.4.vmoptions,在文件末尾添加-Dfile.encoding=UTF8,重启soapui即可。

posted @ 2019-04-09 10:14  灿烂初秋  阅读(964)  评论(0编辑  收藏  举报