1.接口地址
webservices是什么?
更多webservices接口地址访问地址:http://www.webxml.com.cn/zh_cn/web_services.aspx
webservices接口地址如下:
POST /WebServices/MobileCodeWS.asmx HTTP/1.1 Host: ws.webxml.com.cn Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://WebXml.com.cn/getMobileCodeInfo" <?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> <getMobileCodeInfo xmlns="http://WebXml.com.cn/"> <mobileCode>string</mobileCode> <userID>string</userID> </getMobileCodeInfo> </soap:Body> </soap:Envelope>
使用Postman进行webservices接口测试
1.打开postman工具添写接口地址,请求方法,请求头信息,如下所示:
2.填写请求数据,请求的数据格式要按照接口地址给的示例去写:
3.修改参数mobileCode,userID可不填,参考如下:
4.运行postman工具,查询接口返回的数据情况:
ok,到此,我们使用postman进行webservices的接口测试就做完了,,,