Making SOAP requests using Postman

We know it says Postman "REST" client, but that doesn't mean we can't use it for making SOAP requests. One can easily make any HTTP SOAP request using Postman by following these simple steps:

1. Give the SOAP endpoint as the URL. If you are using a WSDL, then give the path to the WSDL as the URL.
2. Set the request method to POST.
3. Open the raw editor, and set the body type as "text/xml".
4. In the request body, give the SOAP Envelope, Header and Body tags as required. Start by giving the SOAP Envelope tag, which is necessary, and define all the namespaces. Give the SOAP header and the body. The name of the SOAP method (operation) should be specified in the SOAP body. For example, for the WSDL operation "GetPostman" defined as –

We give the request body as –

You can check it out yourself by using the WSDL. If you need to use the "getHolidaysAvailable" method defined in this WSDL, give the request body as –

SOAP requests using Postman

With tools like history, collections and environments, SOAP testing inside Postman becomes really easy. If you are using Postman for testing SOAP requests, do let us know in the comments.

This is a guest post by Ankit Dua, developer at BeeHyv Software Solutions. You can connect with Ankit on LinkedIn.

  • Bryan Barnard

    I've been using Postman to test SOAP services as well as RESTful services. Works great as long as you know how to configure the request.

  • kenton gray

    So I've been stuck using SoapUI for a while because I couldn't get this working after tinkering with it for a while with our SOAP instance we had to add the header SOAPAction with a value of ""

    • Evan Ehab

      can u please explain further
      can i log in with the postman auth or should i use a header?

      • Jamie Stamp

        I ran into the same issue, so if anyone else runs into this:

        Click the headers tab. You should already have the content-type set
        Add 'SOAPAction' as a header and give it an empty value (ie. ")

        That's it!

    • Marco Pietersen

      I joined just to say how awesome your discovery is!

  • Nick Bartlett

    Thanks for this post and the screenshot!

  • Thanks-a-mundo for the blog post.Really thank you! Fantastic.

  • Heya i'm for the first time here. I came across this board and
    I find It truly useful & it helped me out
    much. I hope to give something back and aid others like you helped me.

  • jlengrand

    Really useful, thanks! I love POSTMAN, been using it for 2 years and I have only good to say about it :).

  • VB

    I am getting Status 500 Internal Server Error

    MSH|^~&|INVISION|DH|SAMMS-M4|DH|201506091543||ADT^A04|CHPFVRVI|T|2.3

    PID|||0000000||SAMS^TEST1||19850515|M||W|SPEER^^DENVER^CO^80204||||OTHER|S||100503317….. and so on

    This is HL7 format message that i want to pass and check my service is working or not?
    Thank You

  • Maneesh Gupta

    Hello,

    I am facing error with my SOAP requests.. 400 Bad Request. Not sure what I am doing wrong. Need help please

    I can share whatever information is needed

  • Jess Lilly

    I love POSTMAN, but do yourself a favor. If the SOAP API is not working just download SoapUI. Seriously.

    • Davlinski

      Fantastic advice! Thank you!

  • Filip Kinský

    Does Postman work with SOAP WS-Security? WS-Security request contain some extra security tokens in SOAP header, makes some security negotiation requests etc..

    • Gustavo

      Same question

  • qSEzNeS

    Those nerds don't bother to answer questions here. Hey, cant you see how many questions you were asked?

    • What a coincidence I read this! Honestly you're right. It becomes extremely difficult to juggle between our help system, Twitter and 3 GitHub issue trackers along with our slack community for chat.

      Would love if you can ask your questions on GitHub or slack – https://www.getpostman.com/slack-invite

  • Really love Postman, always use it to test my REST and SOAP services 🙂

    Is there any way to import a WSDL so that all the SoapActions are created for me? Currently, I am creating the SoapAction manually for each one outlined in the WSDL

    Regardless, this tool is solid!

    Cheers,
    Oscar

  • Thanks for the advise. BTW, since POSTMAN is initially a RESTful client, how would one do a CoAP requests with it? Can't find anything useful about it on the web.

  • Pingback: How I “hacked” into RATP’s API – Thoughts and Codes()