Over a million developers have joined DZone.

Calling SOAP From UWP

DZone's Guide to

Calling SOAP From UWP

SOAP has fallen out of favor in the world of APIs, but there are still web services that utilize it. Today, we take a look at how to communicate with one from a UWP app.

· Integration Zone ·
Free Resource

SnapLogic is the leading self-service enterprise-grade integration platform. Download the 2018 GartnerMagic Quadrant for Enterprise iPaaS or play around on the platform, risk free, for 30 days.

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 a UWP app.

Connect to Service

To connect to a SOAP service, you can use Visual Studio's "Connected Services" - "Add Service Reference" context menu:

In the "Add Service Reference" enter the URL to the WSDL and select Go.

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 a new instance of the call and run its methods to call the operations.

Note: All the operation calls are async.

With SnapLogic’s integration platform you can save millions of dollars, increase integrator productivity by 5X, and reduce integration time to value by 90%. Sign up for our risk-free 30-day trial!

soap ,uwp ,integration ,api

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}