0


postman请求webService

postman请求调用asmx接口

实例

1、请求方式: POST
2、webService地址:http://127.0.0.1:/WebService/LoginService.asmx
3、header中添加:Content-Type:text/xml;charset=utf-8
4、参数:(xml格式)

<?xml version="1.0" encoding="utf-8"?><soap:Envelopexmlns: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><Loginxmlns="http://tempuri.org/"><user>admin</user><psd>123456</psd></Login></soap:Body></soap:Envelope>

如下图:
在这里插入图片描述
返回值

<?xml version="1.0" encoding="utf-8"?><soap:Envelopexmlns: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><LoginResponsexmlns="http://tempuri.org/"><LoginResult>{
                        "status": 200,
                        "msg": "登录成功"
                         }
            </LoginResult></LoginResponse></soap:Body></soap:Envelope>
标签: 前端

本文转载自: https://blog.csdn.net/u013314974/article/details/126083353
版权归原作者 anjence 所有, 如有侵权,请联系我们删除。

“postman请求webService”的评论:

还没有评论