肥皂请求正文使用'邮递员'铬应用程序 [英] Soap request body using 'postman' chrome app

查看:104
本文介绍了肥皂请求正文使用'邮递员'铬应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

肥皂请求的主体看起来像假日网络服务( http:// www .holidaywebservice.com / HolidayService_v2 / HolidayService2.asmx?wsdl )使用邮政谷歌应用程序?

How would the body of a soap request look like for the 'holiday web service' (http://www.holidaywebservice.com/HolidayService_v2/HolidayService2.asmx?wsdl) using the Postman google app?

我正在尝试使用getHolidaysAvailable方法。我尝试了在holidaywebservice.com网站上找到的建议格式,但它不起作用。简而言之,任何人都可以使用Postman成功发布到此Web服务,并共享您使用的soap请求标头和正文。感谢!

I'm trying to use the getHolidaysAvailable method. I have tried the suggested format found on the holidaywebservice.com site but it does not work. In short, can anyone successfully post to this web service using Postman and share the soap request headers and body you use. Thanks!

推荐答案

方法需要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>

这篇关于肥皂请求正文使用'邮递员'铬应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆