且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

肥皂请求正文使用'邮递员'铬应用程序

更新时间:2023-10-27 23:08:04

方法需要POST并使用 http://www.holidaywebservice.com//HydidayService_v2/Hidayay2.asmx?wsdl 作为 URL

Method needs to be POST and use http://www.holidaywebservice.com//HolidayService_v2/HolidayService2.asmx?wsdl as the URL.

您必须在标题中包含以下内容:

You must include the following in the Headers:

Content-Type: text/xml; charset=utf-8

您可以在标题中添加SOAPAction,但不需要此Web服务请求作为请求主体将指定使用哪种SOAP方法'GetHolidaysAvailable'。

You can add SOAPAction in the headers but is not necessary for this web service request to work as the request body will specify which SOAP Method to use, 'GetHolidaysAvailable'.

SOAPAction: "http://www.holidaywebservice.com/HolidayService_v2/GetHolidaysAvailable"

最后,正文应该看起来像这样:

Finally, the Body should look like this:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.holidaywebservice.com/HolidayService_v2/">
 <SOAP-ENV:Body>
   <ns1:GetHolidaysAvailable>
     <ns1:countryCode>UnitedStates</ns1:countryCode>
   </ns1:GetHolidaysAvailable>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>