使用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>

如图:
在这里插入图片描述

posted @ 2020-06-13 19:17  willingtolove  阅读(23052)  评论(0编辑  收藏  举报