Ascio Web Service v2

Login and sessions

Before you can access the AWS functionality, you must log into the service using your Ascio account username and password. You only need to log in once per session, as the login function returns a unique sessionID that can be used in next calls. Each sessionId remains valid until you call the logout function or after twenty minutes of inactivity. It is possible to have multiple sessions at the same time.

Please look at the examples.

LogIn input parameters

Property
session

Example

<?php
$wsdl = "https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl";
//$wsdl = "https://aws.ascio.com/2012/01/01/AscioService.wsdl";
$client = new SoapClient($wsdl,[ "trace" => 1, "soap_version" => SOAP_1_1)];

//Session

$session =  [
	"Account" => "AccountTest",
	"Password" => "PasswordTest"
];
//LogIn

$logIn =  [
	"session" => $session
];
try{	
    $result = $client->logIn($logIn);
    echo "ResultCode : ".$result->LogInResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->LogInResult->ResultMessage."\r\n";
    if(is_array($result->LogInResult->Errors->string)) {
        echo "Errors:\r\n";
        foreach($result->LogInResult->Errors->string as $key => $value) {
            echo " - " . $value."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

LogOut input parameters

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e

Example

<?php
$wsdl = "https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl";
//$wsdl = "https://aws.ascio.com/2012/01/01/AscioService.wsdl";
$client = new SoapClient($wsdl,[ "trace" => 1, "soap_version" => SOAP_1_1)];

//LogOut

$logOut =  [
	"sessionId" => env.getSessionId()
];
try{	
    $result = $client->logOut($logOut);
    echo "ResultCode : ".$result->LogOutResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->LogOutResult->ResultMessage."\r\n";
    if(is_array($result->LogOutResult->Errors->string)) {
        echo "Errors:\r\n";
        foreach($result->LogOutResult->Errors->string as $key => $value) {
            echo " - " . $value."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

WSDL for AWS v2
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.