Making SOAP Requests Using Postman
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.
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.
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 “”
can u please explain further
can i log in with the postman auth or should i use a header?
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!
This worked perfectly for us. Content-Type was not even needed though in our case.
I joined just to say how awesome your discovery is!
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.
Really useful, thanks! I love POSTMAN, been using it for 2 years and I have only good to say about it :).
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
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
I love POSTMAN, but do yourself a favor. If the SOAP API is not working just download SoapUI. Seriously.
Fantastic advice! Thank you!
Does Postman work with SOAP WS-Security? WS-Security request contain some extra security tokens in SOAP header, makes some security negotiation requests etc..
Same question
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
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.
For SOAP 1.1 you need to send the SOAPAction header
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
You have to make a NTML authentication
When using postman for an old Axis SOAP application where soapAction=”” you also need the header “SOAPAction” with no value
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!!!
Incredibly easy and super nice to be able to see the request and response visually like this.
is the holiday example still working? I dont get any results back
There is a more recent blogpost available here: https://blog.postman.com/making-http-soap-requests-with-postman/
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).
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.
I use Eclipse to work with WSDLs and SOAP XML. One of the real benefits of Eclipse is that it can make a form from my WSDL. The enumerations are then listed as a drop down where appropriate and the rest are empty fields in the form. Can I do that with Postman?