SOAPUI用法

soapUI用法
一、打开soapUI,而后新建一个project,以下

天气预报接口:http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl

而后将wsdl文件放入到以下位置,而后点OK

而后就能够获得以下wsdl中全部的接口

而后双击Request1,打开报文,便可对改接口进行接口测试,以下,输入Provicncename,获得Response响应

在project测试中,若是引入wsdl报以下的错误:
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 bytes   

解决方案:关闭程序并找到SoapUI的安装位置中的SoapUI-4.6.4.vmoptions这个文件,在末尾加入 -Dfile.encoding=UTF8 可解决


网上经常使用的wsdl
http://hi.baidu.com/magicyzzj/item/cd45a6305f449cb9623aff58java

相关文章
相关标签/搜索