Skip to content

Instantly share code, notes, and snippets.

@sebv
Created August 20, 2014 09:21
Show Gist options
  • Save sebv/849b9411d70a13e89af7 to your computer and use it in GitHub Desktop.
Save sebv/849b9411d70a13e89af7 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="http://www.marketo.com/mktows/" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.marketo.com/mktows/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<tns:AuthenticationHeader>
<mktowsUserId>saucelabsinc1_33298388524B31915EDA11</mktowsUserId>
<requestSignature>41253b28d9db5bc1fffc57762a6af19a53f43e3e</requestSignature>
<requestTimestamp>2014-08-19T22:41:05Z</requestTimestamp>
</tns:AuthenticationHeader>
</SOAP-ENV:Header>
<ns1:Body>
<ns0:paramsSyncMultipleLeads>
<leadRecordList>
<leadRecord>
<Email>[email protected]</Email>
<ForeignSysType/>
<leadAttributeList>
<attribute>
<attrName>X60_Days_Manual_Minutes__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>X60_Days_Appium_Minutes_Paid__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Signup_Date__c</attrName>
<attrType>date</attrType>
<attrValue>2014-08-13</attrValue>
</attribute>
<attribute>
<attrName>FirstName</attrName>
<attrType>string</attrType>
<attrValue>Tan Quach</attrValue>
</attribute>
<attribute>
<attrName>LastName</attrName>
<attrType>string</attrType>
<attrValue></attrValue>
</attribute>
<attribute>
<attrName>Scout_Minutes_Level__c</attrName>
<attrType>integer</attrType>
<attrValue>30</attrValue>
</attribute>
<attribute>
<attrName>X90_Days_Auto_Minutes_Paid__c</attrName>
<attrType>string</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>X60_Days_Manual_Minutes_Paid__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Last_Month_Appium_Minutes_Used_Paid__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Test</attrName>
<attrType>boolean</attrType>
<attrValue>True</attrValue>
</attribute>
<attribute>
<attrName>Last_Month_Manual_Minutes_Used_Paid__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Price_Model__c</attrName>
<attrType>string</attrType>
<attrValue>free</attrValue>
</attribute>
<attribute>
<attrName>Last_Month_Minutes_Used__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Company</attrName>
<attrType>string</attrType>
<attrValue></attrValue>
</attribute>
<attribute>
<attrName>X90_Days_Manual_Minutes_Paid__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Last_Month_Automated_Minutes_Used_Paid__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Mac_Auto_Credit_Balance__c</attrName>
<attrType>integer</attrType>
<attrValue>120</attrValue>
</attribute>
<attribute>
<attrName>Last_Month_Appium_Minutes_Used__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Phone</attrName>
<attrType>string</attrType>
<attrValue></attrValue>
</attribute>
<attribute>
<attrName>backendUnsubscribes</attrName>
<attrType>string</attrType>
<attrValue>False</attrValue>
</attribute>
<attribute>
<attrName>X90_Days_Appium_Minutes_Paid__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Total_Minutes_Ever_Used__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Last_Month_Manual_Minutes_Used__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Last_Month_Minutes_Used_Paid__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>X60_Days_Auto_Minutes_Paid__c</attrName>
<attrType>string</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Last_Month_Automated_Minutes_Used__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>X60_Days_Appium_Minutes__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Total_Appium_Minutes_Used__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Username__c</attrName>
<attrType>string</attrType>
<attrValue>tantastik</attrValue>
</attribute>
<attribute>
<attrName>Mac_Manual_Credit_Balance__c</attrName>
<attrType>integer</attrType>
<attrValue>30</attrValue>
</attribute>
<attribute>
<attrName>Credit_Balance__c</attrName>
<attrType>integer</attrType>
<attrValue>120</attrValue>
</attribute>
<attribute>
<attrName>Total_Scout_Minutes_Used__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Landing_Page__c</attrName>
<attrType>string</attrType>
<attrValue>http://saucelabs.com/jobs/0494a3d24f7e49f2959151c81a1bab9c</attrValue>
</attribute>
<attribute>
<attrName>Account_Status__c</attrName>
<attrType>string</attrType>
<attrValue>Free</attrValue>
</attribute>
<attribute>
<attrName>Company_Size__c</attrName>
<attrType>string</attrType>
<attrValue></attrValue>
</attribute>
<attribute>
<attrName>X60_days_Auto_Minutes__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Master_Account__c</attrName>
<attrType>string</attrType>
<attrValue>tantastik</attrValue>
</attribute>
<attribute>
<attrName>X90_Days_Appium_Minutes__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>X90_Days_Manual_Minutes__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>X90_Days_Auto_Minutes__c</attrName>
<attrType>string</attrType>
<attrValue>0</attrValue>
</attribute>
<attribute>
<attrName>Total_OnDemand_Minutes_Used__c</attrName>
<attrType>integer</attrType>
<attrValue>0</attrValue>
</attribute>
</leadAttributeList>
</leadRecord>
</leadRecordList>
<dedupEnabled>true</dedupEnabled>
</ns0:paramsSyncMultipleLeads>
</ns1:Body>
</SOAP-ENV:Envelope>
2014-08-19 15:41:07,585 - marketo - ERROR - Exception processing batch #1 - Server raised fault: 'Bad Request'
Traceback (most recent call last):
File "admin/send_marketing_data_to_marketo.py", line 88, in process_batch
batch, skip_unmodified=not force_sync))
File "/home/sauce/sauce-marketo-working/lib/marketo_helper.py", line 161, in sync_multiple_leads
lead_records, dedup)
File "/home/sauce/.virtualenvs/sauce/local/lib/python2.7/site-packages/suds/client.py", line 542, in __call__
return client.invoke(args, kwargs)
File "/home/sauce/.virtualenvs/sauce/local/lib/python2.7/site-packages/suds/client.py", line 602, in invoke
result = self.send(soapenv)
File "/home/sauce/.virtualenvs/sauce/local/lib/python2.7/site-packages/suds/client.py", line 649, in send
result = self.failed(binding, e)
File "/home/sauce/.virtualenvs/sauce/local/lib/python2.7/site-packages/suds/client.py", line 702, in failed
r, p = binding.get_fault(reply)
File "/home/sauce/.virtualenvs/sauce/local/lib/python2.7/site-packages/suds/bindings/binding.py", line 265, in get_fault
raise WebFault(p, faultroot)
WebFault: Server raised fault: 'Bad Request'
Marketo export was successful
(sauce)sauce@cron:~/sauce-marketo-working$ Write failed: Broken pipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment