I was wondering if anyone has experience with accessing the E-conomic API using PHP(SOAP). We are currently experiencing problems running the example internally (at E-conomic, yes a bit embarrasing) and therefore I wanted to get to the bottom of the problem. So I downloaded and installed the XAMPP package, allowing me to run .php files locally. ( To clarify: I want to run the example locally, hitting the LIVE E-conomicWebservice)
In the E-conomic API bundle, a php example file is located at e-conomic_API_1.4.0\php\list_debtors.php.
I have tried to run the file, on my local XMAPP server like this:
I get the following error when creating the SoapClient:
Warning SoapClientSoapClient() soapclientsoapclient I/O warning failed to load external entity https//wwwe-conomiccom/secure/api1/EconomicWebserviceasmx?WSDL in C\xampp\htdocs\list_debtorsphp on line 40
SOAP-ERROR Parsing WSDL Couldn't load from 'https//wwwe-conomiccom/secure/api1/EconomicWebserviceasmx?WSDL' failed to load external entity https//wwwe-conomiccom/secure/api1/EconomicWebserviceasmx?WSDL
Fatal error Call to a member function Disconnect() on a non-object in C\xampp\htdocs\list_debtorsphp on line 230
Having the source code for the API, i compiled a new E-conomic_API.dll, which hit the webservice running on localhost.
So i changed list_debtors.php line 37
//$wsdlUrl = 'https//wwwe-conomiccom/secure/api1/EconomicWebserviceasmx?WSDL'; to this one
$wsdlUrl = 'http//localhost/api1/EconomicWebServiceasmx?WSDL';
adn suddenly my example works.
What am I doing wrong here?
I have tried different approaches:
Adding the necessary SSL modules to Apache httpd.conf (think it was already set up)
LoadModule ssl_module modules/mod_sslso
Adding the necessary SSL modules to the PHP.ini
$orig_error_reporting = error_reporting();
$this-soap = new SoapClient('https//wwwe-conomiccom/secure/api1/EconomicWebserviceasmx?WSDL');
$client = new SoapClient($wsdlUrl, array(trace = 1, exceptions = 1));
None of these actions helped, so I installed Wireshark, and it turns out, that no TCP is being sent out, when I try to run the example using
$wsdlUrl = 'https://www.e-conomic.com/secure/api1/EconomicWebservice.asmx?WSDL
If someone has any good ideas to solve this problem, please let me know.