Working with SOAP
Unlike REST, which is an architectural style, SOAP is a protocol. It is perhaps reasonable to compare working with SOAP to importing a .NET assembly (DLL) to work with the types inside. As a result, a SOAP client is much more strongly tied to a server than is the case with a REST interface.
SOAP uses XML to exchange information between the client and server.
Finding a SOAP service
SOAP-based web APIs have become quite rare, less popular by far than REST. The examples in this section are based on a simple SOAP service written for this book.
The service is available on GitHub as a Visual Studio solution. The solution is also available in the GitHub repository containing the code examples used in this chapter: https://github.com/indented-automation/SimpleSOAP.
The solution should be downloaded, opened in Visual Studio (2015 or 2017, Community Edition or better), and debugging should be started by pressing F5. A browser page will be opened, which...