The current module uses a really old version of the partner.wsdl that prevents it from working with Salesforce Enterprise accounts properly. I propose we update to the most recent version of the WSDL, 11 instead of continuing to use the 6.0 version bundled with the module.
I've attached a zipped file with the most recent version of the partner.wsdl, which you can just unzip and replace the existing on in the includes/ directory with. You'll also need this patch that needs to be applied to the the includes/salesforce.php file in order for it to work.
Among many other things updating to the new WSDL, and applying this patch allows Drupal to make SSL connections to Salesforce which is required by the Enterprise version of Salesforce.
So far, this seems to be working well in my tests.
| Comment | File | Size | Author |
|---|---|---|---|
| wsdl_update.patch | 538 bytes | eojthebrave | |
| partner.wsdl_.tgz | 11.73 KB | eojthebrave |
Comments
Comment #1
victorkane commentedYes, I have not been able to use anything past the old version. For example, applying this patch gives a Salesforce authentication error (I am using a developer account).
Perhaps this is something that needs to be fixed via moving the whole module on top of the Salesforce API for PHP instead of the legacy basis.
This will be done in upgrading for Drupal 6.
Comment #2
eojthebraveAre you adding your "secret key" to your password when trying to connect? Newer versions of the WSDL need this.
Also, I think it is important that we move towards using the latest WSDL as soon as possible as the one that is currently being used is way out of date. No longer supported by Salesforce, and in some cases like Enterprise accounts will not work no matter what as they require SSL to access the API and this WSDL doesn't support it.
Comment #3
victorkane commentedI did check that, I requested a new "secret key" and added it, to no avail; and I tried it with and without your patch (for SSL).
I will double check, however, given the importance of this. Could it have anything to do with my using a developer account?
Will test and report back.
Comment #4
eojthebraveI've been using it with my developer account without any problems for a while now. Does it give you any errors? Could you do something like ...
and see if that gives you any more information.
Comment #5
bjacob commentedI also had some trouble with connecting to Salesforce. It all began here http://drupal.org/node/190631#comment-652767. After a lot of tests and help from eojthebrave I've found out that one has to pay attention to the following points:
Comment #6
aaronbauman#702614: 5.x branch is no longer relevant. Let's drop it.