developerforce/Force.com-Toolkit-for-PHP

Updating wdsl.xml file

Opened this issue · 2 comments

I'm trying to update my enterprise.wdsl.xml file to include some new custom fields on the opportunity object. None of the new fields are being recognized even though i've updated the actual file.

Is there anything else that needs to be changed? I noticed that there's a reference to the API version number in both the SforceMetaDataClient.php and SforceBaseClient.php, but changing them to the current (33.0) version doesn't seem to solve my problem.

I'm still able to pull the default/older fields, but can't access my new custom ones.

Do you by chance have the default wsdl caching on? I know I fall for that a few times.
Try changing the name of the wsdl file to test whether this is a caching issue.
If it is, then you can disable the wsdl cache by adding:
ini_set("soap.wsdl_cache_enabled", "0");
ini_set("soap.wsdl_cache_ttl", "0");

It may not matter but the PHP docs ( http://php.net/manual/en/soap.configuration.php ) say the values of soap.wsdl_cache_enabled and soap.wsdl_cache_ttl should be integers:

ini_set("soap.wsdl_cache_enabled", 0);
ini_set("soap.wsdl_cache_ttl", 0);

Cheers,
Jeff