We usually have the requirement to leverage an existing soap service sitting on premises using Azure logic apps. I also came across such requirements in one of the projects. So how I did it, details are below:
I have created this as a passthrough connector for just to re-use existing request messaging payloads, intention to simulate the soap service call and try not to do anything fancy.
- Create a logic app custom connector with pass through option.
- Login to Azure portal and create a new logic app custom connector with the name of your soap service.
- Now go to the just created logic app custom connector and click edit.
General section
- You can upload connector icon of your choice, which will be displayed when used in logic apps.
- Make sure you select the ‘Connect-via on-premises data gateway’ option if the the soap service is deployed in an on-premise server/private network.
- Now lets suppose, the Url of your soap service is like this http://10.1.0.91/training/apps/data.svc.
- Then Host must be 10.1.0.91, which is the IP address of the server where the soap service sits.
- then the Base url in the connector should be /training/apps (exclude data.svc part for now)
- go to next page which is security.
Security section
Skip this step if your soap service has a separate login call to get the session token or authorization token. Otherwise, select the right authentication option that your soap service needs.
- When you configure this section, I would recommend you go directly to the swagger editor option, enable it and copy the below code (also, verify the highlighted fields below according to your soap service parameters):
- Click on Update Connector.
2. Create logic app and test.
- Create a new logic app to test the connector.
-
Add an action in the logic app and search by the connector name:
- Select the SoapPassThrough action
- The connection will be created, if authentication is selected , then it will ask for the details.
-
Now in the body section, just copy the request body of the soap.
- Save and run the logic app to test.