Operations needed with a SOAP API

salilsingh-9961 351 Reputation points
2023-07-17T06:29:06.2333333+00:00

Hi Team,

I have a SOAP API where I need to POST a SOAP request and get a SOAP response. Below are needed -

  1. I need to import SOAP API into Azure APIM that I have.
  2. Imported SOAP API is needed to be called from an Azure Logic APP.

Can you please mention the steps involved for above. If possible, please provide me with links.

Thanks,

Salil

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,295 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,348 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. navba-MSFT 27,465 Reputation points Microsoft Employee
    2023-07-18T14:29:13.3066667+00:00

    @salilsingh-9961 Thanks for getting back. Please find below the answers to your questions.

    If you have already imported the SoapAPI in APIM then you don't need to follow the above steps 1 and 2 again.

    Question: Is it mandatory to RESTify a SOAP API, when it is imported to APIM?
    Answer: When creating a SOAP API in Azure API Management (APIM), you have two options: SOAP pass-through and SOAP to REST.

    SOAP pass-through means that APIM will simply forward the SOAP request to the backend SOAP service without any modification. This is useful if you want to expose a SOAP service through APIM without having to modify the SOAP messages.

    SOAP to REST means that APIM will convert the SOAP request to a REST request before forwarding it to the backend service. This is useful if you want to expose a SOAP service through APIM as a REST API. APIM will automatically generate a REST API based on the WSDL of the SOAP service, and you can customize the generated API to fit your needs.

    So You can choose to decide either of the above depending on your requirement. I have used SOAP pass-through in my below example.

    Question: Cant we consume the API by using logic app by giving the new APIM URL for SOAP API and by using the request in SOAP form?
    Answer: It is possible. I have used the below Trigger and Action in my Logic App as an example. You can tweak it based on your requirement.

    User's image

    Expanding the workflow to show the settings:

    User's image

    User's image

    Then you need to SAVE it and then Run Trigger to test it.

    User's image

    You can also check if the request was successful from the APIM standpoint by looking at the APIM Requests metrics with splitting applied for the Backend Response code.:

    User's image

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.