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

ResultCodeMessageValue
200OK
400Parameter value error - Null or invalid value
401Authorization failed
403Access denied
414User not found

CreateZone Request

PropertyDescription
zoneNameExample: "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.