Skip to main content
May 16, 2014
Question

How to pass AuthorizationHeader in version 2_3 SOAP Requests?

  • May 16, 2014
  • 1 reply
  • 829 views
Hi,
We were previously using 1_3 version of Marketo SOAP API.. Now, we need to use a feature "getMultipleLeads from Static Lists" of Marketo API that is available in newer versions, so we need to migrate our java classes to this new version.
One problem that I'm having is that previously we called the API function like this 
SuccessGetMultipleLeads success = soap.getMultipleLeads(ParamsGetMultipleLeads params, AuthenticationHeaderInfo authHdr);
passing AuthorizationHeader as a parameter to function. But, the newly generated stub from http://app.marketo.com/soap/mktows/2_3?WSDL gives definition of this function as follows:
public com.marketo.mktows.wsdl.SuccessGetMultipleLeads getMultipleLeads(com.marketo.mktows.wsdl.ParamsGetMultipleLeads paramsGetMultipleLeads)
 which does not take AuthorizationHeader as parameter.
Please let me know if this is the intended behavior for this API? and how does we pass the AuthorizationHeader now to authorize our request?
Thanks. A quick response will be highly appreciated.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Jep_Castelein2
Level 10
May 19, 2014
You can take a look at the sample code we provided here: http://developers.marketo.com/documentation/soap/getmultipleleads/