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

相關文章
相關標籤/搜索