Informizely customer feedback surveys




Se de seneste forbedringer




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.


<p>     Med venlig hilsen</p> <p>     <strong>Heidi Christensen</strong></p> <br> </br> <p>     <strong><img alt="" src=" style="width: 200px; height: 49px; " /></strong></p> <p>     <a href="http://www.e-conomic.dk/"><strong>Online regnskabsprogram</strong></a><br />     &nbsp;</p> <ul>     <li>         <a href="http://www.e-conomic.dk/support">e-conomic support</a>&nbsp;- &nbsp;Din vej til vores support</li>     <li>         <a href="http://wiki2.e-conomic.dk/">e-copedia</a>&nbsp;- Opslagsværk om e-conomic</li>     <li>         <a href="http://blog.e-conomic.dk/">e-conomic blog</a>&nbsp;- Hold dig opdateret</li> </ul>
Spørgsmål af (18.9k points)
valgt som bedste svar af