使用postman調用webservice接口


PostMan調用webservice接口,采用post方式,參數使用xml格式。

#實例

1、webservice地址:http://192.168.2.13/psum/UserModuleService.asmx;
2、上傳方式選擇POST方式;
3、header中設置:Content-Type:text/xml;charset=utf-8
4、參數:(xml格式)

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
    <LoginByNameAndPwd xmlns="http://tempuri.org/">
      <username>psadmin</username>
      <password>00000</password>
    </LoginByNameAndPwd>
</soap:Body>
</soap:Envelope>

如圖:
在這里插入圖片描述


免責聲明!

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



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