phpforce / soap-client

A PHP client for the Salesforce SOAP API
MIT License
81 stars 75 forks source link

Id not specified in an update call #11

Closed shaunhardy closed 9 years ago

shaunhardy commented 10 years ago

Applying the fix in #9 exposed a bug in the PHP SOAP library where SoapClient::__getTypes() does not support extensions in the XMLSchema when used in WSDL mode.

https://bugs.php.net/bug.php?id=45404

Since every object in the WSDL extends sObject, which is where the Id is declared, any record update will fail with "Id not specified in an update call".

daum commented 10 years ago

+1

daum commented 10 years ago

@ddeboer I'm hitting the same issue mentioned here. Due to the bug could be done as every object has "Id" is always add that into the getSoapTypes array it builds for each type of object. What do you think about doing that? Not the prettiest way but I don't see any other way to do it?

tamabe commented 10 years ago

We run into the same problem using the update call

dkorrel commented 10 years ago

I ran into the same problem. Made a small (dirty) workaround for the time being. Made a pull request for the changes.

mathielen commented 9 years ago

+1

ikrasnykh commented 9 years ago

See #19

ddeboer commented 9 years ago

Should be fixed with #19.