Making SOAP Requests Using Postman

Tags:

Reading Time: < 1 minute

2020 Update: If you want to read the latest about SOAP requests,  check out our new 2020 version of Making Soap Requests with 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 requests 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 –

<wsdl:operation name="GetPostman">
<http:operation location="/GetPostman"/>
.
.
.
</wsdl:operation>

We give the request body as –

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pm="https://www.postman.com/">
 <soapenv:Header></soapenv:Header>
 <soapenv:Body>
 <pm:GetPostman>
 .
 .
 .
 </pm:GetPostman>
 </soapenv:Body>
</soapenv:Envelope>

With tools like history, collections and environments, SOAP testing inside Postman becomes really easy.

 

How’s your experience making SOAP requests in Postman? Let us know in the comments below.

This is a guest post by Ankit Dua, developer at BeeHyv Software Solutions.

0

Comments

Your email address will not be published. Required fields are marked *



This site uses Akismet to reduce spam. Learn how your comment data is processed.

31 thoughts on “Making SOAP Requests Using Postman

  • 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.


    0

  • 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 “”


    0

    • Evan Ehab

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


      0

      • 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!


        0

        • This worked perfectly for us. Content-Type was not even needed though in our case.


          0

    • Marco Pietersen

      I joined just to say how awesome your discovery is!


      0

  • Nick Bartlett

    Thanks for this post and the screenshot!


    0

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


    0

  • 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.


    0

  • jlengrand

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


    0

  • 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


    0

  • 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


    0

  • Jess Lilly

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


    0

    • Davlinski

      Fantastic advice! Thank you!


      0

  • 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..


    0

    • Gustavo

      Same question


      0

  • qSEzNeS

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


    0

    • 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.postman.com/slack-invite


      0

  • 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


    0

  • 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.


    0

  • Erlando

    For SOAP 1.1 you need to send the SOAPAction header


    0

  • Abhi

    I am trying to execute a Microsoft dynamics CRM SDK’s Method using SOAP. It Gives me authentication error. I think i have to pass Credential and URL as Headers but how to do that i dont know…Can anyone please help me out here. following is the soap:-



    AuditId
    “”


    RetrieveAuditDetails


    0

    • Arnaldo Trujillo

      You have to make a NTML authentication


      0

  • Kim Christensen

    When using postman for an old Axis SOAP application where soapAction=”” you also need the header “SOAPAction” with no value


    0

  • Ser Dario

    wow it’s incredible it works fine and you can save a lot of time for quick testing!!!! thank you very much!!! I also used it for testing soap service with complex data input and it works fine as well!!! I wasted some time at the begininng to understand how to define comnplex data, but once I did it for the first time I save a lot of time for repeating different tests 🙂 It works also on https endpoints, you just need to trust that site on google chrome explorer!!!


    0

  • Incredibly easy and super nice to be able to see the request and response visually like this.


    0

  • Bjorn

    is the holiday example still working? I dont get any results back


    0

  • Madhan

    Need to read data from file and pass data as an input to SOAP call and output the response(by extracting particular nodes).

    Please let me know if this is possible in Postman(with SOAP calls).


    0

  • Ramana

    I need to make SOAP request automate by mapping the elements of SOAP request to Environment or Global or Collection variables and with the above approach, how can i assign variables with body soap xml ements by {{}}.

    Could you please provide better approach like SOAP UI tool which will automatically fetch the SOAP XML if we provide WSDL URL but Postman need seperate tool to get Endpoint, Action and request Body which is very poor in Postman tool.

    Kindly help me to understand better in postman how can use like SOAP UI tool for the above points.


    0

You might also like: