You need to sign in to do that
Don't have an account?

Unable to run PHP update example - concrete entity type error
I have downloaded php-client-53.zip and Pear::SOAP 0.8RC3 beta.
The login and list examples work fine but I'm unable to run the update example in the HTML readme:
$FIELDS=array('type'=>'lead','FirstName'=>'newtest','LastName'=>'test','Company'=>'testthis');
$client->create($FIELDS);
The result I get back is:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>common.exception.ApiException: Must send a concrete entity type.</faultstring>
<detail>
<sf:fault xsi:type="sf:InvalidSObjectFault" xmlns:sf="urn:fault.enterprise.soap.sforce.com">
<sf:exceptionCode>INVALID_TYPE</sf:exceptionCode>
<sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage>
</sf:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
I enabled tracing on the client object:
$client->__trace(1);
and called $client->__get_wire() but there is no outgoing data to display. The incoming data is the SOAP error.
What have I missed ?
Cheers
Dave.
The login and list examples work fine but I'm unable to run the update example in the HTML readme:
$FIELDS=array('type'=>'lead','FirstName'=>'newtest','LastName'=>'test','Company'=>'testthis');
$client->create($FIELDS);
The result I get back is:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>common.exception.ApiException: Must send a concrete entity type.</faultstring>
<detail>
<sf:fault xsi:type="sf:InvalidSObjectFault" xmlns:sf="urn:fault.enterprise.soap.sforce.com">
<sf:exceptionCode>INVALID_TYPE</sf:exceptionCode>
<sf:exceptionMessage>Must send a concrete entity type.</sf:exceptionMessage>
</sf:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
I enabled tracing on the client object:
$client->__trace(1);
and called $client->__get_wire() but there is no outgoing data to display. The incoming data is the SOAP error.
What have I missed ?
Cheers
Dave.
Message Edited by dave k on 09-23-2004 08:59 AM
Hi dave k,
This error occurs when an attribute is missing on the sobject element. An attribute of type="Lead" needs to be on the sobject element. Unfortunately, I've no knowlede of PHP and can't recommend a fix or workaround.
Cheers
I was using the Enterprise SOAP URL rather than the Partner URL.
Once I changed, that the examples worked.
Cheers
Dave.