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>

 

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