使用邮递员测试肥皂服务的错误请求

时间:2018-04-13 15:53:41

标签: web-services post soap postman

您好我想使用邮递员测试网络服务,但我很难获得有效的回复。这是我发送的内容 头

Content-Type:text/xml; charset=utf-8
Content-Length:402
SOAPAction:"http://tempuri.org/TestGetItem"

<?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>
    <TestGetItem xmlns="http://tempuri.org">
      <user>ht</user>
      <password>8522</password>
      <input>1942002</input>
    </TestGetItem>
  </soap:Body>
</soap:Envelope>

该服务是http://localhost:8050/GagarinWebService/ItemService.asmx的主机 我正在尝试向http://localhost:8050/GagarinWebService/ItemService.asmx?op=TestGetItem

提出请求

我在这里做错了什么?

1 个答案:

答案 0 :(得分:0)

好的,我发现了,内容长度计算错误,407不是402

相关问题