Informizely customer feedback surveys

How do i simply log on econimic API

0

Hej Economic

I am completly new to Economic.

I want to simply try to make a logon to the API just to see if i can. I cant!

I use PHP with following code:

$client = new SoapClient(
            'https://api.e-conomic.com/secure/api1/EconomicWebservice.asmx?WSDL',
            array(    'trace' => 1,
                      'exceptions' => 1,
                      'cache_wsdl' => WSDL_CACHE_NONE,
                      'keep_alive' => 0,
                      'connection_timeout' => 10
                )
);

$client->Connect(array(    'agreementNumber' => 'xxxxxx',
                        'userName'        => 'xxx',
                        'password'        => 'xxxxxxxx'
                    )
);

And yes - SOAP is turned on in my php.ini.

I get following failure:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.e-conomic.com/secure/api1/EconomicWebservice.asmx?WSDL' : failed to load external entity "https://api.e-conomic.com/secure/api1/EconomicWebservice.asmx?WSDL" in C:\xampp\htdocs\economic\connect_to_economic.php:22 Stack trace: #0 C:\xampp\htdocs\economic\connect_to_economic.php(22): SoapClient->SoapClient('https://api.e-c...', Array) #1 {main} thrown in C:\xampp\htdocs\economic\connect_to_economic.php on line 22

Can anybody give me a hint to the problem

Regards Christian

lukket
i Spørgsmål » Andet af (440 points)
status opdateret af

1 Svar

 
Bedste svar

Hi Christian,

 

This question regarding PHP we unfortunately cannot answer, but I would advise you to try our API Forum here instead.


Med venlig hilsen

Heidi Christensen


Online regnskabsprogram
 

Spørgsmål af (18.9k points)
valgt som bedste svar af