
Sample Request Message-create Call-Enterprise API
POST https://na1.salesforce.com/services/Soap/c/10.0 HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 1.1.4322.573) Content-Type: text/xml; charset=utf-8 SOAPAction: "" Content-Length: 510 Expect: 100-continue Host: na1.salesforce.com <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:urn1="urn:sobject.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <urn:SessionHeader> <urn:sessionId>QwWsHJyTPW.1pd0_jXlNKOSU</urn:sessionId> </urn:SessionHeader> </soapenv:Header> <soapenv:Body> <urn:create> <urn:sObjects xsi:type="urn1:Contact"> <!--Zero or more repetitions:--> <!--You may enter ANY elements at this point--> <AccountId>001D000000HRzKD</AccountId> <FirstName>Jane</FirstName> <LastName>Doe</LastName> </urn:sObjects> <urn:sObjects xsi:type="urn1:Account"> <Name>Acme Rockets, Inc.</Name> </urn:sObjects> </urn:create> </soapenv:Body> </soapenv:Envelope>
Sample Response Message-create Call-Enterprise API
HTTP/1.1 200 OK Server: sfdc Content-Type: text/xml; charset=utf-8 Transfer-Encoding: chunked Date: Tue, 29 May 2007 18:05:41 GMT <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com"> <soapenv:Body> <createResponse> <result> <id>003D000000OY9omIAD</id> <success>true</success> </result> <result> <id>001D000000HTK3aIAH</id> <success>true</success> </result> </createResponse> </soapenv:Body> </soapenv:Envelope>