Events
Mar 17, 11 PM - Mar 21, 11 PM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
APPLIES TO: All API Management tiers
This article shows how to import a SOAP API as a WSDL specification and then convert it to a REST API. The article also shows how to test the API in API Management.
In this article, you learn how to:
Note
WSDL import to API Management is subject to certain limitations. WSDL files with wsdl:import
, xsd:import
, and xsd:include
directives aren't supported. For an open-source tool to resolve and merge these dependencies in a WSDL file, see this GitHub repo.
Complete the following quickstart: Create an Azure API Management instance
In the Azure portal, search for and select API Management services.
On the API Management services page, select your API Management instance.
From the left menu, under the APIs section, select APIs > + Add API.
Under Create from definition, select WSDL.
In WSDL specification, enter the URL to your SOAP API, or select Select a file to select a local WSDL file.
In Import method, select SOAP to REST. When this option is selected, API Management attempts to make an automatic transformation between XML and JSON. In this case, consumers should call the API as a RESTful API, which returns JSON. API Management converts each request to a SOAP call.
The following fields are filled automatically with information from the SOAP API: Display name, Name, Description. Operations are filled automatically with Display name, URL, and Description, and receive a system-generated Name.
Enter other API settings. You can set the values during creation or configure them later by going to the Settings tab.
For more information about API settings, see Import and publish your first API tutorial.
Select Create.
Operations can be called directly from the Azure portal, which provides a convenient way to view and test the operations of an API.
Select the API you created in the previous step.
Select the Test tab.
Select an operation.
The page shows fields for query parameters and fields for the headers. One of the headers is Ocp-Apim-Subscription-Key, for the subscription key of the product that is associated with this API. If you created the API Management instance, you're an admin already, so the key is filled in automatically.
Press Send.
When the test is successful, the backend responds with 200 OK and some data.
You can compose an API of APIs exposed by different services, including:
Append a different API to your existing API using the following steps.
Note
When you import another API, the operations are appended to your current API.
Go to your Azure API Management instance in the Azure portal.
Select APIs on the Overview page or from the menu on the left.
Click ... next to the API that you want to append another API to.
Select Import from the drop-down menu.
Select a service from which to import an API.
Events
Mar 17, 11 PM - Mar 21, 11 PM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Integrate OpenAPI-enabled Web APIs with Azure API Management through Visual Studio - Training
Learn how to add an OpenAPI-enabled Web API application to Azure API Management through Visual Studio.