Attention: The Marketo Community will undergo scheduled maintenance on Tuesday, August 20th between 10-11 PM PDT. During this time, the Community and its content will not be accessible. We apologize for any inconvenience this may cause.

Re: SOAP API Java sample

Anonymous
Not applicable

SOAP API Java sample

the existing sample in Java is for version 2.0, is it possible to publish updated sample for 2.1? 
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: SOAP API Java sample

To the best of my knowledge there was no significant change from 2.0 to 2.1. The WSDL would clarify though:
https://123-abc-456.mktoapi.com/soap/mktows/2_1?WSDL 

The old endpoints had a generic URL such as http://app.marketo.com/soap/mktows/2_0 and would normally include the POD name such as http://app-a.marketo.com/soap/mktows/2_0

The new SOAP endpoints include the Munchkin ID such as https://123-abc-456.mktoapi.com/soap/mktows/2_1

Please replace the sample URL with the actual endpoint available from Admin - SOAP API.
In alternative you can use the generic one to review the SOAP methods and attributes. That is invalid for submissions:
http://app.marketo.com/soap/mktows/2_1?WSDL

Anonymous
Not applicable

Re: SOAP API Java sample

the new version has a LeadSelector in ParamsGetMultipleLeads, I want to use it, but having troubles generating client. I also had them when tried to generate for 2.0 and eventually used code from sample
Anonymous
Not applicable

Re: SOAP API Java sample

The complete XML skeleton for getMultipleLeads is (you may need to re-ident it to improved readability)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mkt="http://www.marketo.com/mktows/">
   <soapenv:Header>
      <mkt:AuthenticationHeader>
         <mktowsUserId>?</mktowsUserId>
         <requestSignature>?</requestSignature>
         <requestTimestamp>?</requestTimestamp>
         <!--Optional:-->
         <audit>?</audit>
         <!--Optional:-->
         <mode>?</mode>
      </mkt:AuthenticationHeader>
   </soapenv:Header>
   <soapenv:Body>
      <mkt:paramsGetMultipleLeads>
         <!--Optional:-->
         <leadSelector/>
         <!--Optional:-->
         <lastUpdatedAt>?</lastUpdatedAt>
         <!--Optional:-->
         <streamPosition>?</streamPosition>
         <!--Optional:-->
         <batchSize>?</batchSize>
         <!--Optional:-->
         <includeAttributes>
            <!--Zero or more repetitions:-->
            <stringItem>?</stringItem>
         </includeAttributes>
      </mkt:paramsGetMultipleLeads>
   </soapenv:Body>
</soapenv:Envelope>