Make SOAP requests from Postman + Web Service Testing

  Рет қаралды 79,727

Valentin Despa

Valentin Despa

Күн бұрын

SOAP requests containing XML are still popular today. In Postman, SOAP is not natively supported (meaning that there is no support for generating SOAP requests in Postman), but as SOAP requests run over HTTP, you can use Postman. Many already use Postman for dealing with REST APIs and GraphQL API and don't want to switch between multiple tools.
If you are solely using SOAP-based APs, maybe Postman is not the best tool for the job.
In this video tutorial, I will show you how you can run a simple SOAP request with Postman, use variables to make your SOAP body dynamic, and write some API tests after parsing the XML response body.
One popular alternative to Postman with natively supports SOAP requests and parse WSDL files is SoapUI. You can use SoapUI to generate your request body and manually paste it in Postman if you prefer to use Postman for working with SOAP.
You can download the free opensource version of SoapUI from here: www.soapui.org/downloads/soap...
The calculator web service used in this tutorial:
www.dneonline.com/calculator.asmx
// POSTMAN COMPLETE GUIDE ONLINE COURSE
👉 Want to learn more about Postman? Check my Postman online course.
Get it at a special price and help support this KZfaq channel:
vdespa.com/courses/
___
// I HAVE A QUESTION!
I do my best to answer all comments here on KZfaq but I cannot make any guarantees.
If you have a question, it is best to ask your question on the Postman User Group on Discord ( / discord .
If you have purchased the Postman Online Course, please use the Q&A section or send me a message on Udemy.
Please do not email me or contact me on other channels as I might not be able to answer. Sorry!
___
// I HAVE A VIDEO IDEA
Do you want me to create a video on a specific topic? Just fill out the form below:
forms.gle/uWEzXFQ2viJtZtvZ7
___
// P L A Y L I S T S
▸ Learn Postman | bit.ly/2CFaf70
▸ Postman Crash Course | bit.ly/2YwEBBT
▸ Postman Tips & Tricks | bit.ly/2JLkXyU
___
// F R E E R E S O U R C E S
▸▸▸ DOWNLOAD the FREE Postman Quick Reference Guide
bit.ly/postman-quick-reference-yt
▸▸▸ Ask a question on Discord
/ discord
▸▸▸ JOIN the Postman User Group on Facebook
bit.ly/2OutAMZ
▸▸▸ The OFFICIAL Postman community forum
community.getpostman.com/
▸▸▸ 👉 Subscribe to the "Testing and automation with Valentine" newsletter for bi-weekly tutorials, tips, and news from the industry.
eepurl.com/gPwpU1
___
// IMPRINT
vdespa.com/imprint
---

Пікірлер: 64
@vdespa
@vdespa 4 жыл бұрын
👉 Want to learn more about Postman? Check my complete Postman online course. vdespa.com/courses/?q=KZfaq
@JoshT4life
@JoshT4life 3 жыл бұрын
I need help, what would you do here if you need to authenticate tokens and convert it to code. Are we adding the tokens with headers? This is for python
@chameerajayampathwanninaya9973
@chameerajayampathwanninaya9973 2 жыл бұрын
Your content is nice, clean and easy to understand. Every detail is well presented so even beginners can absorb every detail.
@MarcusGarveysGhost
@MarcusGarveysGhost 4 жыл бұрын
This tutorial could not have come at a better time. I was demonstrating using SoapUI to a QA engineer just yesterday for testing a couple of our legacy APIs. Today, I’ll handover the same requests in Postman, one environment, no context switching. SoapUI’s UI is a car crash scene.
@vdespa
@vdespa 4 жыл бұрын
Great I could help. I was actually surprised to hear how many are doing the same.
@DevOdyssey
@DevOdyssey 4 жыл бұрын
Great use of Cheerio for asserting values in XML tags! 😊
@vdespa
@vdespa 4 жыл бұрын
Thanks. Cheerio is very powerful. 💪
@cesarvmg
@cesarvmg 3 жыл бұрын
Excelent, thanks for this great video!
@vdespa
@vdespa 3 жыл бұрын
You're welcome!
@milkmeili6195
@milkmeili6195 4 жыл бұрын
Thank you for sharing. ^^
@vdespa
@vdespa 4 жыл бұрын
Thanks for watching!
@syedarmaghanhassan4652
@syedarmaghanhassan4652 Жыл бұрын
Vlaentin, you are great man. I am really enjoying your Postman course on Udemy ;) Thanks for sharing! May I ask a question: How is Testing SOAP different than REST? Can you make a video about it, what is the difference between testing both of them?
@2choisangun
@2choisangun 3 жыл бұрын
thank you, this video helped me :)
@vdespa
@vdespa 3 жыл бұрын
Glad it helped!
@cynthiacalixtro8923
@cynthiacalixtro8923 2 жыл бұрын
¡Gracias! Es lo que estaba buscando :D
@vdespa
@vdespa 2 жыл бұрын
¡Gracias!
@alissonkissel
@alissonkissel 4 жыл бұрын
Muito bom! Obrigado por compartilhar.
@vdespa
@vdespa 4 жыл бұрын
Obrigado pelo seu comentário! Estou contente por o vídeo ter sido útil.
@HarishPv7
@HarishPv7 4 жыл бұрын
is it possible to send multiple request in one single service call?.. I mean, in the above case can we send multiple pair of numbers as request in one service call to get their sum as response at one instance?
@vdespa
@vdespa 4 жыл бұрын
This depends on how on the web service. Typically yes.
@HarishPv7
@HarishPv7 4 жыл бұрын
@@vdespa yes got it👍🏽
@shreyashjoshi4188
@shreyashjoshi4188 5 ай бұрын
How to use certificate as authentication for soap web request?
@andrii-oliinyk882
@andrii-oliinyk882 4 жыл бұрын
Hello. Thank you. But need some clarification. It may be because of postman version, but I couldn't change value in header to text/xml, or need to change something in settings? I have add new key 'Content-Type' and only there I could make text/xml
@vdespa
@vdespa 4 жыл бұрын
It is hard to know what the problem is in this case. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.
@buddyguy6816
@buddyguy6816 4 жыл бұрын
@@vdespa Same thing happened to me too. Postman does not let me to edit auto generated headers. I had to override Content-Type header with the one i created manually
@sreetar
@sreetar Жыл бұрын
Is yhis using soapui or postman?. Any reason gor mixip?
@powerstar452
@powerstar452 2 жыл бұрын
Hi Valentin, am looking for solution to validate data types: Number & Integer in XML response using Postman. When I tried with cheerio and conversion to Json, all the fields treating as String, not as number/integer. Please help me out.
@vdespa
@vdespa 2 жыл бұрын
Can you send me a sample response by email at valentin@vdespa.com ?
@tomaszwida
@tomaszwida 2 жыл бұрын
a stupid question maybe, but can you inject these soap request directly from a browser? i don't want to you 3rd party software to initiate these request, i would like to done it directly from browser. is that possible?
@Funny-dd6xs
@Funny-dd6xs 4 жыл бұрын
I have an XML with Large data on my local HD how do I use get function to extract data ... I am not a devleoper but I am just someone how want to get data from this XML can you help plz
@vdespa
@vdespa 4 жыл бұрын
What do you want to do with that data?
@programmer9450
@programmer9450 3 жыл бұрын
How can i send request file that checks my database against the values entered like passcode and username. Normal for a login portal ?
@vdespa
@vdespa 3 жыл бұрын
I highly recommend not talking with the database from Postman. However, if you need to do this, here is a possible approach. kzfaq.info/get/bejne/Z5NpZMxolZuXc6c.html
@petermunoz1221
@petermunoz1221 3 жыл бұрын
Hi, excuse me, How can I put a file into the request of soap service?, thanks for your help
@vdespa
@vdespa 3 жыл бұрын
This is slightly more complex and depends on the Webservice and if they support MTOM, SWA or inline attachments. Check the docs and come back with more information.
@askof171
@askof171 2 жыл бұрын
Thanks! God bless you!
@vdespa
@vdespa 2 жыл бұрын
Thanks. Same to you!
@VinothKumar-kq7ik
@VinothKumar-kq7ik 2 жыл бұрын
Thanks for sharing this video. Using Cheerio can we load request body payload?
@vdespa
@vdespa 2 жыл бұрын
Yes, you can load it. But what are you trying to do?
@VinothKumar-kq7ik
@VinothKumar-kq7ik 2 жыл бұрын
@@vdespa I am trying to pass conditions in the request body using data driven method.
@arvindram8
@arvindram8 4 жыл бұрын
Soapwebservices testing using postman is this content included in your udemy course my project has both soap Webservices and rest API can I use postman to do API testing in my case which has both Soap and Rest
@vdespa
@vdespa 4 жыл бұрын
The course explains API testing in general and shows REST examples. The concepts can be easily applied to SOAP but the course does not focus on SOAP. Postman does not support SOAP such as SoapUI does.
@arvindram8
@arvindram8 4 жыл бұрын
@@vdespa but in my project both are there so what can I do in that case ?
@MemmedovZaur
@MemmedovZaur 3 жыл бұрын
THANKS
@pranithad1462
@pranithad1462 3 жыл бұрын
My soap response has duplicate soap envelope/body tags. Any idea?
@vdespa
@vdespa 3 жыл бұрын
It is hard to answer this with the given information. Join the Discord community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.
@chameerajayampathwanninaya9973
@chameerajayampathwanninaya9973 2 жыл бұрын
Super
@vdespa
@vdespa 2 жыл бұрын
Thank you!
@akhileshvatupalli
@akhileshvatupalli 2 жыл бұрын
How to set WS-RM (Reliable Messaging) in Postman for SOAP service?
@vdespa
@vdespa 2 жыл бұрын
Can you be a bit more specific please?
@isi1044
@isi1044 2 жыл бұрын
link to soap calculator?
@leofranca4126
@leofranca4126 3 жыл бұрын
greate, thanks
@vdespa
@vdespa 3 жыл бұрын
You're welcome, Leo!
@hasanbaig1540
@hasanbaig1540 2 жыл бұрын
discord link is invalid, please update it in description
@dayinlife
@dayinlife 4 жыл бұрын
In my case i have the problem : TypeError: Cannot read property 'AddResult' of undefined
@dayinlife
@dayinlife 4 жыл бұрын
pm.test("SOAP", function () { var jsonObject = xml2Json(responseBody); pm.expect(jsonObject['soap:Envelope']['soap:Body']['AddResposnse']['AddResult']).to.eql('12'); });
@dayinlife
@dayinlife 4 жыл бұрын
I found the problem :) AddResposnse :)
@vdespa
@vdespa 4 жыл бұрын
Sorry for the late response. I am glad it worked.
@KanedaSyndrome
@KanedaSyndrome Жыл бұрын
serio or cheerio?
@sftafd
@sftafd 3 жыл бұрын
500 Internal Server error :(
@vdespa
@vdespa 3 жыл бұрын
It is hard to know what the problem is in this case. Join the Facebook community (see link in the description) and ask your question there. Consider adding more details, including screenshots. Thanks for understanding.
@wrestlemate7393
@wrestlemate7393 Жыл бұрын
Certificate
@vdespa
@vdespa Жыл бұрын
Which one?
@Chimi26Mr
@Chimi26Mr Жыл бұрын
my link don´t have the extenson .asmx?, my link has .svc?wsdl and Postman answer me with Something went wrong with the server... Can you help me?
Loop request based on data from response in Postman
13:13
Valentin Despa
Рет қаралды 58 М.
POSTMAN BEGINNER TUTORIAL 17 💡 How to run SOAP requests
7:28
Automation Step by Step
Рет қаралды 236 М.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 39 МЛН
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 30 МЛН
Web Services Testing using SOAP UI
1:02:28
SDET- QA
Рет қаралды 214 М.
How write API Tests with Postman in 3 easy steps
18:49
Valentin Despa
Рет қаралды 162 М.
Data-driven testing using Postman
13:37
Valentin Despa
Рет қаралды 58 М.
How to reuse Postman scripts and tests among different test cases
10:31
Cookies: The Hidden Tech That Keeps the Internet Running
17:28
Valentin Despa
Рет қаралды 4,8 М.
API Web Services Beginner Tutorial 4 - What are SOAP Web Services
6:50
Automation Step by Step
Рет қаралды 498 М.
Simple Object Access Protocol Pros and Cons (Explained by Example)
11:37
JSON Schema validation in Postman
9:29
Valentin Despa
Рет қаралды 47 М.
New AI ROBOT with 3 Brains SHOCKED Experts!
9:16
AI Revolution
Рет қаралды 20 М.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН