Postman调用 .net 的webservice

    技术2022-07-11  73

    1、使用post方式调用,url以 asmx 止。

    2、设置header,content-type         text/xml;charset=utf-8。

    3、body里选择 raw,参数模板如下:

    <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> <方法名称 xmlns="http://tempuri.org/"> <参数1>xxx</参数1> <参数2>yyy</参数2> <参数3>zzz</参数3> </方法名称> </soap:Body> </soap:Envelope>

     

    Processed: 0.013, SQL: 9