Force.com-Toolkit-for-PHP icon indicating copy to clipboard operation
Force.com-Toolkit-for-PHP copied to clipboard

Updating wdsl.xml file

Open ianknauer opened this issue 10 years ago • 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.

ianknauer avatar Mar 24 '15 23:03 ianknauer

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");

zoltan-fedor avatar Mar 28 '15 15:03 zoltan-fedor

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

brookemahoney avatar May 03 '15 21:05 brookemahoney