Hello Mike!
The application now works so let me share a few comments regarding this 4 day nighmare.
After a lot of back and forth emailing with the host and after 3 days waiting for a reply to my ticket they finally enabled soap, even though they said that it was already enabled it wasnt.
Their solution to enable soap?
1. To add 2 folders to my root named /lib/php/ and copied the soap.so and a soap.la files
2. Modified the php.ini file adding:
extension_dir = /home/username/lib/php
extension = soap.so
On my side, this is what I did:
I want to make another comment regarding the apex wiki. (
PHP Toolkit 1.1 Getting Started - ApexDevNet)
There is a section that shows an example of how to connect using the partner wsdl
PHP Code:
require_once ('soapclient/SforceEnterpriseClient .php');
$mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection("partner.wsdl.xml");
$mylogin = $mySforceConnection->login("username@mail.com", "changeme");
Please note its using the SforceEnterpriseClient.php and then tries to create a new SforcePartnerClient, this does not work the first line should read
PHP Code:
require_once ('soapclient/SforcePartnerClient .php');
Another note worth to mention regarding the hosting server:
In my root directory I have /public_html and also have /www.
I was using the /public_html to store my files inside (/public_html/sfdc/all application files here)
I noticed that when the host created a phpinfo() file they stored it inside the /www not the /public_html so even though they are supposed to have the same files (I think) I had one more file in the /www than in /public_html. SO I put all the application files inside /www/sfdc
Also to the SforceBasweClient.php i added:
PHP Code:
require_once ('SOAP/Client.php');
(this is the pear file)
So finally the application is working, I am using some ajax so I am currently modifying that.
Now I can say: Feliz Aņo Nuevo!! (Happy New Year!!)
Mike thnx for your help!
Greetings from MX!!
Lacho