Consuming HTTP Services in Python Transcripts
Chapter: Calling SOAP services from Python
Lecture: SOAP services from a tool-based ecosystem

Login or purchase this course to watch this video and the rest of the course contents.
0:01 Let's review the core concepts around calling a Soap service with a tool driven generated approach,
0:09 so what you are going to do is we'll have a Soap web service out there, and it will have a service url and a wsdl url, we'll point some tooling at it,
0:17 it will generate a proxy, typically this is like generating source code that will be compiled and then, those two things know how to do Soap exchange
0:25 and you treat the generated proxy or client more or less just like it's a local class, it just happens to be that it needs a network
0:33 and it does this crazy Soap exchange to get there. So the expected experience that people created this wsdl soap world was
0:40 you go to your tool, you'd say add service reference or something to that effect,
0:43 it would pull up some kind of dialogue, some tooling, that would read the wsdl, and generate a type which knows about all the operations
0:51 including all the rich type exchange. Okay, and then we just use this like standard local code,
0:59 so we'll say blog service=new blog, we'll say create a post and we give it the data that it's going to take, then we can say
1:06 give me all the posts and for each over those and print them out, we can even update the post, get me the last one of all of them,
1:13 increment the view count and then update that back to the server, okay so this is what Soap was created for let's see how we can use it in Python.


Talk Python's Mastodon Michael Kennedy's Mastodon