Soap request body using 'postman' chrome app

后端 未结 2 623
执念已碎
执念已碎 2021-02-01 05:50

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 g

2条回答
  •  既然无缘
    2021-02-01 06:50

    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
    

    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:

    
     
       
         UnitedStates
       
     
    
    

提交回复
热议问题