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

User not found

0

Hi.

I'm trying to use the native SoapClient in PHP for the Connect method.

My code looks like this:

<?php
 
 
try{
$client = new \SoapClient($endpoint, array('trace' => true, 'exceptions' => true, 'encoding' => 'UTF-8'));
$client->Connect((object)array('agreementNumber' => (int)'12345', 'userName' => 'MyUserName', 'password' => 'MyPassWord'));
}
catch(SoapFault $e)
{
$e->getMessage();
}
catch(Exception $e)
{
$e->getMessage();
}
 
This gives me an error though:
Economic.Api.Exceptions.AuthenticationException(E02250): User not found (id=9ead63df-5bfc-44e7-8acf-81ef366b1f67)
 
Can anyone explain to me why this is?
created Jun 19, 2014 by Repox
0% Accept Rate
Q 1 A 0 C 1

1 Answer

0
answered Jun 19, 2014 by raviteja
No dice. Gives me a new error:

 [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.e-conomic.com/secure/api1/EconomicWebService.asmx' : Extra content at the end of the document
Visma e-conomic A/S
...