Postman進行webservices接口測試


1.接口地址

webservices是什么?

  

 

更多webservices接口地址訪問地址:http://www.webxml.com.cn/zh_cn/web_services.aspx

webservices接口地址如下:

POST /WebServices/MobileCodeWS.asmx HTTP/1.1
Host: ws.webxml.com.cn
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://WebXml.com.cn/getMobileCodeInfo"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <getMobileCodeInfo xmlns="http://WebXml.com.cn/">
      <mobileCode>string</mobileCode>
      <userID>string</userID>
    </getMobileCodeInfo>
  </soap:Body>
</soap:Envelope>

使用Postman進行webservices接口測試 

1.打開postman工具添寫接口地址,請求方法,請求頭信息,如下所示:

2.填寫請求數據,請求的數據格式要按照接口地址給的示例去寫:

3.修改參數mobileCode,userID可不填,參考如下:

4.運行postman工具,查詢接口返回的數據情況:

ok,到此,我們使用postman進行webservices的接口測試就做完了,,,


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM