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格式)文章来源:https://www.toymoban.com/news/detail-523894.html
<?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>
<Login xmlns="http://tempuri.org/">
<user>admin</user>
<psd>123456</psd>
</Login>
</soap:Body>
</soap:Envelope>
如下图:
返回值文章来源地址https://www.toymoban.com/news/detail-523894.html
<?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>
<LoginResponse xmlns="http://tempuri.org/">
<LoginResult>{
"status": 200,
"msg": "登录成功"
}
</LoginResult>
</LoginResponse>
</soap:Body>
</soap:Envelope>
到了这里,关于postman请求webService的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!