Postman调用 .net 的webservice

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>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章