Prerequisites
- Azure account
- Azure API Management resource.
Step 1
Login to your Azure account.
Step 2
Click + icon to add new resource and search for API Management.
Step 3
Click API Management icon, which will take you to API Management creation process.
Step 4
Enter the appropriate details in the below form and click Create button. It will create Azure API Management interface through which you can manage your API. Now, we will use this newly created API Management to transform the SOAP backend to REST API.

Step 5
Go to the newly created API Management resource screen and click Publisher portal.

In the Publisher portal, click Import API.

Step 7
Select WSDL as Specification Format and enter SOAP link in Specification Document URL and enter the appropriate details, as shown below and click Save.
Note
I have used an open source SOAP Service for the explanation.

Step 8
If the WSDL has multiple end points, the screen given below will appear. Among multiple items, we are able to choose only one. Choose "OrdersAPI::basic and click Select button.

Now, you will see the screen given below with SOAP based Web Service Orders API, which has been imported to Azure API Management , as shown below.
Now API Management will transform SOAP backend to REST API.
During the import process, Azure API Management will generate the special policies to the inbound transform from JSON to a SOAP and the same thing will happen on the outbound flow.
Step 9
Click Operation to view the API definition and you can see in the screen given below that Orders API are now transformed to REST API structure. The structure of Orders Service shows the image given below. We will use this structure to discuss about the further transform process.

Step 10
Click GetOpenOrders and you can see it is having REST API structure with the http verbs. Here, the request is provided to REST based GetOrders. In the background, the request transfers to Rewrite URL template, which holds SOAP Service reference.

Step 11
Click Policies to view in more detail about the background process.
Under API dropdown, select OrdersAPI, Operation as GetOrders and click Configure Policy.

Proceed with the code, as shown below.







Sandeep ShuklaPosted Sep 24, 2019, 1:51 AM
How to I pass the request parameter or header parameter to body using transform logic ?
Humayun Kabir MamunPosted Mar 22, 2017, 12:30 AM
Thanks for this nice article...