Hi Eric - Apologies for the confusion. getMultipleLeads uses the simple stream position type. We had documented it using the complex stream position type. The documentation has been corrected.
Here is a sample XML of two API calls using sthe simple stream position.
First call to getMultipleLeads:
REQUEST:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:paramsGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<leadSelector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:LastUpdateAtSelector">
<latestUpdatedAt>2013-11-06T09:58:58.862-08:00</latestUpdatedAt>
<oldestUpdatedAt>2013-11-05T09:58:58.863-08:00</oldestUpdatedAt>
</leadSelector>
<streamPosition></streamPosition>
<batchSize>1</batchSize>
<includeAttributes>
<stringItem>Email</stringItem>
<stringItem>munchkinID</stringItem>
</includeAttributes>
</ns2:paramsGetMultipleLeads>
RESPONSE:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:successGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<result>
<returnCount>1</returnCount>
<remainingCount>1</remainingCount>
<newStreamPosition>id:1937:to:1383674338:tl:1383760738:os:1:rc:1</newStreamPosition>
<leadRecordList>
<leadRecord>
<Id>1937</Id>
<Email>raj.rajamani+mktoblog@gmail.com</Email>
<ForeignSysPersonId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ForeignSysType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<leadAttributeList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</leadRecord>
</leadRecordList>
</result>
</ns2:successGetMultipleLeads>
The second call to getMultipleLeads passes the newStreamPosition value from the first call.
REQUEST:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:paramsGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<leadSelector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:LastUpdateAtSelector">
<latestUpdatedAt>2013-11-06T09:59:57.516-08:00</latestUpdatedAt>
<oldestUpdatedAt>2013-11-05T09:59:57.517-08:00</oldestUpdatedAt>
</leadSelector>
<streamPosition>id:1937:to:1383674338:tl:1383760738:os:1:rc:1</streamPosition>
<batchSize>1</batchSize>
<includeAttributes>
<stringItem>Email</stringItem>
<stringItem>munchkinID</stringItem>
</includeAttributes>
</ns2:paramsGetMultipleLeads>
RESPONSE:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:successGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<result>
<returnCount>1</returnCount>
<remainingCount>0</remainingCount>
<newStreamPosition>id:1091275:to:1383674338:tl:1383760738:os:2:rc:0</newStreamPosition>
<leadRecordList>
<leadRecord>
<Id>1091275</Id>
<Email>jthao@marketo.com</Email>
<ForeignSysPersonId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ForeignSysType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<leadAttributeList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</leadRecord>
</leadRecordList>
</result>
</ns2:successGetMultipleLeads>