SoapUI 简单使用

新建项目
image

image

添加WSDL
image
http://www.webxml.com.cn/WebServices/ValidateEmailWebService.asmx?wsdl
image

查阅文档编辑代码
文档:http://ws.webxml.com.cn/WebServices/ChinaZipSearchWebService.asmx?op=getAddressByZipCode

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:web="http://WebXml.com.cn/">
   <soap:Header/>
   <soap:Body>
      <web:getAddressByZipCode>
         <!--Optional:-->
         <web:theZipCode>100000</web:theZipCode>
         <!--Optional:-->
         <web:userID></web:userID>
      </web:getAddressByZipCode>
   </soap:Body>
</soap:Envelope>

image

添加请求到测试用例

image
image
image

设置响应超时时间
image
image

发送请求
image

返回结果
image

测试2
image

测试3
image

posted @ 2025-09-11 16:37  基础狗  阅读(3)  评论(0)    收藏  举报