SOAP API Java sample | Community
Skip to main content
June 12, 2013
Question

SOAP API Java sample

  • June 12, 2013
  • 3 replies
  • 803 views
the existing sample in Java is for version 2.0, is it possible to publish updated sample for 2.1? 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

June 12, 2013
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

June 12, 2013
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
June 12, 2013
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>