Ascio DNS
Java Axis GetRoles
Returns the available roles and their permissions.

Response GetRoles(GetRoles getRoles)Response codes
| ResultCode | Message | Value |
|---|---|---|
| 200 | OK | |
| 401 | Authorization failed | |
| 501 | Syntax error in parameters or arguments | |
| 506 | Required 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.
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.