1 Reply Latest reply on May 19, 2014 8:53 AM by Jep Castelein

    How to pass AuthorizationHeader in version 2_3 SOAP Requests?

      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.