SOAP Requests Using Postman Error – Solved!

Postman logo+text 320x132

You have an existing working SOAP project in SOAPUI that you want to run in Postman but you cannot make it work due to a 500 Http error or some other error? Follow the steps below to make it work 🙂

First..

From SOAPUI copy your SOAP message and then paste it to Postman. I’m using a sample ASMX service for global weather below.

Soapmessage

From this blog post from Postman, their advised is to add the wsdl and operation tags in the message. But this does not work for me.

And then..

From Postman make sure the Content-type is text/xml.

Postmanxmlmsg

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET">
   <soapenv:Header/>
   <soapenv:Body>
      <web:GetCitiesByCountry>
         <!--Optional:-->
         <web:CountryName>Philippines</web:CountryName>
      </web:GetCitiesByCountry>
   </soapenv:Body>
</soapenv:Envelope>

Here’s the trick

Some SOAP web services will work with just the message in an envelope format. But if not, try adding a SOAPAction in the header of your request just like in the sample below.

Postmanheader

Here is the full request headers and body.

Postmanconsol

curl -X POST -H "Content-Type: text/xml" -H "SOAPAction: http://www.webserviceX.NET/GetCitiesByCountry" -H "Cache-Control: no-cache" -H "Postman-Token: 3e9ad6f4-e669-18ef-6da1-c603371ca1c6" -d '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET">
   <soapenv:Header/>
   <soapenv:Body>
      <web:GetCitiesByCountry>
         <!--Optional:-->
         <web:CountryName>Philippines</web:CountryName>
      </web:GetCitiesByCountry>
   </soapenv:Body>
</soapenv:Envelope>' "http://www.webservicex.com/globalweather.asmx"

This will do the trick in making SOAP requests using Postman. Enjoy!

Comments

  1. Yoke says:

    Very Nice.. 🙂 Its very inspiring sir! 🙂

  2. RS says:

    Thanks!

  3. Eduardo Sereno says:

    Thanks!

  4. Mukhlis says:

    Thanks for this! I was wondering what was missing in my SOAP request..:)

  5. Rey says:

    Thank you, it works wonderfully

  6. Artisanumi says:

    secular brotherhoods of scribes.

  7. Arnottmtg says:

    Libraries of the Carolingian era). IN

  8. Sightykj says:

    By the end of the 15th century, 35

  9. Glassbgm says:

    European glory, and even after

  10. Sprinklerrah says:

    … As a rule, the manuscript is called

  11. Feederkhk says:

    55 thousand Greek, 30 thousand Armenian

  12. Flukesiq says:

    “Julia’s Garland” (fr. Guirlande de Julie)

  13. BlackVuevoa says:

    handwritten books were made,

  14. Feederhki says:

    A handwritten book is a book

  15. Vintagefph says:

    among them acquired “Moral

  16. Batteryojx says:

    bride, Julie d’Angenne.

  17. Flashpaqeru says:

    Europe, and in Ancient Russia

  18. 4ytonx

  19. Batterymxx says:

    collection of poems composed

  20. Start your online work using the financial Robot. https://go.tygyguip.com/0j35

  21. Fingerboardqcf says:

    (palimpsests). In the XIII-XV centuries in

  22. 5deedy

  23. kmapye

  24. 7jrw3p

Leave a Reply to Yoke Cancel reply

*