Ascio DNS

Java Axis GetRoles

Returns the available roles and their permissions.

Response GetRoles(GetRoles getRoles)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
501Syntax error in parameters or arguments
506Required attribute missing in request

GetRoles Request

GetRolesResponse

Property
GetRolesResult
roles

Java Axis example

package ascio.AscioDns.examples;
import com.groupnbt._2010._10._30.Dns.DnsService.*;
import ascio.lib.*;

public class GetRolesExample {
	public static GetRolesResponse main() {
		AscioConfig config = new AscioConfig();
		Dns env = config.getTesting().getDns();
		try {
			Response response = env.getClient().getRoles();			
			System.out.println("response\n");
			System.out.println("GetRoles Code\t:" + response.getResultCode());
			System.out.println("GetRoles Message\t: " + response.getResultMessage());
			if(response.getResultCode() > 200){
				for(String error : response.getErrors()) {
					System.out.print(error);
				}	
			}		
			return response;
		} catch (Exception e) {
			System.out.print(e);
		}
		return new GetRolesResponse();package ascio.AscioDns.examples;
import com.groupnbt._2010._10._30.Dns.DnsService.*;
import ascio.lib.*;

public class GetRolesExample {
	public static GetRolesResponse main() {
		AscioConfig config = new AscioConfig();
		Dns env = config.getTesting().getDns();
		try {
			Response response = env.getClient().getRoles();			
			System.out.println("response\n");
			System.out.println("GetRoles Code\t:" + response.getResultCode());
			System.out.println("GetRoles Message\t: " + response.getResultMessage());
			if(response.getResultCode() > 200){
				for(String error : response.getErrors()) {
					System.out.print(error);
				}	
			}		
			return response;
		} catch (Exception e) {
			System.out.print(e);
		}
		return new GetRolesResponse();
WSDL AscioDns
https://dnsservice.demo.ascio.com/2010/10/30/DnsService.wsdl (OTE)
https://dnsservice.ascio.com/2010/10/30/DnsService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.