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

package ascio.v2.examples;
import com.ascio.www._2007._01.*;
import com.ascio.www._2007._01.holders.*;
import ascio.lib.*;
import javax.xml.rpc.holders.*;

public class LogInExample {
	public static Response main() {
		AscioConfig config = new AscioConfig();
		V2 env = config.getTesting().getV2();

		Session session =  new Session();
		session.setAccount("AccountTest");
		session.setPassword("PasswordTest");

		try {
			//outputs holders

			ResponseHolder logInResultHolder = new ResponseHolder();
			StringHolder sessionIdHolder = new StringHolder();

			env.getClient().logIn(session, logInResultHolder, sessionIdHolder);

			Response response = logInResultHolder.value;

			System.out.println("LogIn ResultCode\t: " + response.getResultCode().toString());
			System.out.println("LogIn Message\t: " + response.getMessage());
			System.out.println("sessionId\t\t: " + sessionIdHolder.value);        
        
			if(response.getResultCode() == 400) {
				for( String value : response.getValues()) {
					System.out.println("Error:	" + value);
				}
			}
			return response;
           
		} catch (Exception e) {
			System.out.print(e);
		}
		return new Response();
	}
}

LogOut input parameters

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e

Example

package ascio.v2.examples;
import com.ascio.www._2007._01.*;

import ascio.lib.*;

public class LogOutExample {
	public static Response main() {
		AscioConfig config = new AscioConfig();
		V2 env = config.getTesting().getV2();

		try {

			Response response = env.getClient().logOut(env.getSessionId());


			System.out.println("LogOut ResultCode\t: " + response.getResultCode().toString());
			System.out.println("LogOut Message\t: " + response.getMessage());
			if(response.getResultCode() == 400) {
				for( String value : response.getValues()) {
					System.out.println("Error:	" + value);
				}
			}
			return response;
           
		} catch (Exception e) {
			System.out.print(e);
		}
		return new Response();
	}
}
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)