0

Need help on Marketing cloud WSDL. I am not able to find the FueOAuth node in marketing cloud WSDL. I got the WSDL from below link:

https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/wsdl-endpoint-links.htm

I want to include the fueloauth header into my soap request in APEX.

Can anybody help?

  • you can add manually that like this <fueloauth>accestoken</fueloauth> – pkharries Sep 10 '19 at 5:19
  • <fueloauth> node is missing in my wsdl. There should be a proper fueloauth node in my wsdl so that i can assign my access token to fueloauth in APEX. I am not sure if i have missed anything while generating the wsdl. – Tejbir Singh Sep 10 '19 at 12:09
2

Here's an example SOAP envelope header with fueloauth:

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<fueloauth xmlns="http://exacttarget.com">ACCESS TOKEN</fueloauth>
</soapenv:Header>
  • I know we can directly use this header inside our soap request but I want to add this header in APEX using the marketing cloud WSDL. So how to add this header into my soap request. – Tejbir Singh Sep 10 '19 at 11:58
  • Thanks for the link!!. But there is no such class named “fueloauth” in my apex generated class. Can you please tell me to add this class? – Tejbir Singh Sep 10 '19 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.