Рет қаралды 3,390
SOAP APIs and their corresponding language WSDL looks a bit confusing in the beginning; specially if you are used to REST APIs. The reason is kind of simple: 1. WSDL is more focused on being machine readable, 2. It contains every single bit of info needed to use the API, 3. Its more enterprise and 4. It comes from IBM & Microsoft :D
In this video I'll describe the concepts, will show you how you should do when you are asked to work on a SOAP API and then we will review SoapUI as a tool to get familiar / test our SOAP / WSDL and then will write a Python program to call a SOAP API using its WSDL via the Zeep library.
If you want to repeat what you see in the video (and I highly suggest you do so) this is the SOAP / WSDL service I use in the video: dneonline.com/calculator.asmx
00:00 - SOAP vs REST APIs
03:14 - why WSDL
05:15 - A sample SOAP / WSDL service
08:28 - Access a SOAP service with SoapUI
14:00 - using Python to access SOAP / WSDL (Zeep library)