Ascio DNS
Java Axis CreateZone
Creates a zone in AscioDNS. Records can be provided, but are not mandatory. The owner is a user that was created with CreateUser
Response CreateZone(CreateZone createZone)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | OK | |
400 | Parameter value error - Null or invalid value | |
401 | Authorization failed | |
403 | Access denied | |
414 | User not found |
CreateZone Request
Property | Description |
---|---|
zoneName | Example: "testing-ascio.com" |
owner | |
records |
CreateZoneResponse
Property |
---|
CreateZoneResult |
Java Axis example
package ascio.AscioDns.examples;
import com.groupnbt._2010._10._30.Dns.DnsService.*;
import ascio.lib.*;
public class CreateZoneExample {
public static CreateZoneResponse main() {
AscioConfig config = new AscioConfig();
Dns env = config.getTesting().getDns();
Record record = new Record();
record.setSource("www.testing-ascio.com");
record.setTTL(3600);
record.setTarget("5.6.7.8");
ArrayOfRecordRecord records[] = new ArrayOfRecordRecord[]{record};
try {
Response response = env.getClient().createZone("testing-ascio.com", "zoneownername", records);
System.out.println("response\n");
System.out.println("CreateZone Code\t:" + response.getResultCode());
System.out.println("CreateZone 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 CreateZoneResponse();package ascio.AscioDns.examples;
import com.groupnbt._2010._10._30.Dns.DnsService.*;
import ascio.lib.*;
public class CreateZoneExample {
public static CreateZoneResponse main() {
AscioConfig config = new AscioConfig();
Dns env = config.getTesting().getDns();
Record record = new Record();
record.setSource("www.testing-ascio.com");
record.setTTL(3600);
record.setTarget("5.6.7.8");
ArrayOfRecordRecord records[] = new ArrayOfRecordRecord[]{record};
try {
Response response = env.getClient().createZone("testing-ascio.com", "zoneownername", records);
System.out.println("response\n");
System.out.println("CreateZone Code\t:" + response.getResultCode());
System.out.println("CreateZone 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 CreateZoneResponse();
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.