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

use SOAP::Lite;
use Date::Format;
$proxy = "https://awstest.ascio.com/2012/01/01/AscioService.svc";
$namespace = "http://www.ascio.com/2007/01";
$soap = SOAP::Lite -> on_action( sub { "http://www.ascio.com/2007/01/ISessionService/LogIn" } ) -> proxy($proxy);
$soap->autotype(0);
$method = SOAP::Data->name("LogIn")
->attr({xmlns => $namespace});

#Session
$session =  \SOAP::Data->value(
	SOAP::Data->name('Account','AccountTest'),
	SOAP::Data->name('Password','PasswordTest')
);
@query = (
	SOAP::Data->name(session => $session)
);

$result = $soap->call($method => @query);
unless ($result->fault) {
	$response = $result->valueof("//LogInResponse/LogInResult");
	print "ResultCode : $response->{'ResultCode'}\r\n";
	print "Message : $response->{'Message'}\r\n";
	if ($response->{"ResultCode"} == 200) {
		print "OK";
	}
}
else {
	print join ", ",
	$result->faultcode,
	$result->faultstring,
	$result->faultdetail;
}

LogOut input parameters

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e

Example

use SOAP::Lite;
use Date::Format;
$proxy = "https://awstest.ascio.com/2012/01/01/AscioService.svc";
$namespace = "http://www.ascio.com/2007/01";
$soap = SOAP::Lite -> on_action( sub { "http://www.ascio.com/2007/01/ISessionService/LogOut" } ) -> proxy($proxy);
$soap->autotype(0);
$method = SOAP::Data->name("LogOut")
->attr({xmlns => $namespace});
@query = (
	SOAP::Data->name(sessionId => $sessionId)
);

$result = $soap->call($method => @query);
unless ($result->fault) {
	$response = $result->valueof("//LogOutResponse/LogOutResult");
	print "ResultCode : $response->{'ResultCode'}\r\n";
	print "Message : $response->{'Message'}\r\n";
	if ($response->{"ResultCode"} == 200) {
		print "OK";
	}
}
else {
	print join ", ",
	$result->faultcode,
	$result->faultstring,
	$result->faultdetail;
}
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)