API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Could not connect to host

0
Hej, jeg har altid forbundet min webløsning med e-conomic, med følgende kode:

try {
            $client = new SoapClient(https://www.e-conomic.com/secure/api1/EconomicWebservice.asmx?WSDL, array(trace = 1, exceptions = 1));

            $client-Connect(array(
          'agreementNumber' = XXXXXXX,
          'userName' = XXXXXXX,
          'password' = XXXXXX
        ));
        } catch (SoapFault $fault) {
            trigger_error(sprintf(Soap fault %s - %s, $fault-faultcode, $fault-faultstring), E_USER_ERROR);
        }

Nu får jeg pludselig fejlmeddelelse: Could not connect to host

Supporten mener jeg har noget forkert kode, men jeg har jo intet ændret, men bare pludselig fået fejlen? har nogen en løsning  eller ide om hvad jeg pludselig gør forkert?

// Henrik
created Jul 18, 2012 by wibergs
20% Accept Rate
Q 6 A 2 C 0

3 Answers

0
Hello Henrik,


Please ensure your SOAP Version. Some times it's having problem just because of SOAP version. Try to cange your server.
answered Jul 20, 2012 by gunjanpatel
0
Hi,
I have same problem.
It has nothing to do with SOAP-version. It is the basic HTTPS-connect - before use of SOAP.
I connect to https://secure.e-conomic.com/secure/api ... rvice.asmx

Latest successfull connect juli 3rd 2012.

/Jan Ahlberg
answered Aug 1, 2012 by JanAhlberg
0
Hello and thanks,
It was the webserver at my provider that was the problem, so it is fixed

I´m Connected....
answered Aug 2, 2012 by wibergs
Visma e-conomic A/S
...