Calling SOAP from UWP
SOAP Web Services might not be the most popular Web Api technology at the moment but many companies still rely on them. Here's a short tutorial on how to call SOAP Web Service from UWP app.
Connect to service
To connect to SOAP service, you can use Visual Studio's "Connected Services" - "Add Service Reference" context menu:
![](/posts/files/dccb1a11-5d5d-4835-aba7-5690185c2433.png)
In the "Add Service Reference" enter the URL to the WSDL and select Go.
![](/posts/files/19b62be7-cd4d-43c0-a71a-02fee3c4f7f6.jpeg)
Select your service, give a namespace and hit OK.
Call service
Now your SOAP client is available from the namespace you provided in the previous screen. "Add service reference" creates a proxy class, which can be used to call any operations provided by the service. Create new instance of the call and run its methods to call the operations.
![](/posts/files/882e2d6d-5531-4f34-b7b5-8bfda0253491.jpeg)
Note: All the operation calls are async.