使用postman调用webservice接口

时间:2020-06-13 20:15:34   收藏:0   阅读:1357

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>

如图:
技术分享图片

原文:https://www.cnblogs.com/willingtolove/p/13121447.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!