Layer7 API Management

 View Only
  • 1.  Oauth in SOAP Calls

    Posted May 11, 2018 11:44 AM

    Anyone done Oauth using SOAP calls ? I am trying to integrate with SalesForce Marketing Cloud using SOAP calls and we are using OAuth 2.0. I need to know how would I implement it in my WebService call from API GW ?

  • 2.  Re: Oauth in SOAP Calls

    Broadcom Employee
    Posted Dec 19, 2018 03:24 PM
      |   view attached

    Good morning,


    From reviewing this post and the information available from the Salesforce Marketing website, I would recommend that you pivot over to using their REST API as the SOAP API is only going to support classic tools. If you want to continue to use the SOAP API then this link Salesforce Developers - authenticate-soap-api outlines how to authenticate. It starts with a call to the Get Token Endpoint (Salesforce Developers - get-access-token) using the payload below 


    Content-Type: application/json
    "clientId": "YOUR_CLIENT_ID",
    "clientSecret": "YOUR_CLIENT_SECRET"


    Then you will extract the accessToken payload

    "accessToken": "YOUR_ACCESS_TOKEN"
    "expiresIn": 3600

    and inject it into a SOAP Header 




    I've attached a sample policy to help get you started. It will probably need some tuning.




    Stephen Hughes

    Broadcom Support