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?