How to pass AuthorizationHeader in version 2_3 SOAP Requests?

Anonymous
Not applicable

How to pass AuthorizationHeader in version 2_3 SOAP Requests?

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.
Tags (1)
1 REPLY 1
Jep_Castelein2
Level 10

Re: How to pass AuthorizationHeader in version 2_3 SOAP Requests?

You can take a look at the sample code we provided here: http://developers.marketo.com/documentation/soap/getmultipleleads/