FinanzOnline session webservice.
This service is used to login and get a session id which is needed for other webservices.
Requirements for this service:
Error codes
Method | Return | Description |
---|---|---|
__construct | void | Constructor. |
__destruct | Just be sure to get logged of on class destruction. | |
login | self | Login at session web service. |
logout | self | Logout from the session web service. |
isLoggedIn | bool | Check if a session is set, otherwise user can't be logged in. |
getID | string | Get the web service session id. |
getCredential | FonCredential | Undocumented function. |
public function __construct(FonCredential $credential, array<string,mixed> $soapOptions=[]): void
Constructor.
Initialize soap client with local wsdl if available. Otherwise we will take the online wsdl.
Parameter | Type | Default | Description |
---|---|---|---|
$credential | FonCredential | credential class used to set some soap params for login/logout | |
$soapOptions | array |
[] | https://www.php.net/manual/en/soapclient.soapclient.php options |
void | array |
public function __destruct():
Just be sure to get logged of on class destruction.
public function login(): self
Login at session web service.
self |
public function logout(): self
Logout from the session web service.
self |
public function isLoggedIn(): bool
Check if a session is set, otherwise user can't be logged in.
bool |
public function getID(): string
Get the web service session id.
string |