Ascio DNS

Java Axis RestoreZone

Restore a deleted zone from AscioDNS.

Response RestoreZone(RestoreZone restoreZone)

Response codes

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

RestoreZone Request

PropertyDescription
zoneNameExample: "testing-ascio.com"

RestoreZoneResponse

Property
RestoreZoneResult
zone

Java Axis example

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

public class RestoreZoneExample {
	public static RestoreZoneResponse main() {
		AscioConfig config = new AscioConfig();
		Dns env = config.getTesting().getDns();
		try {
			Response response = env.getClient().restoreZone("testing-ascio.com");			
			System.out.println("response\n");
			System.out.println("RestoreZone Code\t:" + response.getResultCode());
			System.out.println("RestoreZone 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 RestoreZoneResponse();package ascio.AscioDns.examples;
import com.groupnbt._2010._10._30.Dns.DnsService.*;
import ascio.lib.*;

public class RestoreZoneExample {
	public static RestoreZoneResponse main() {
		AscioConfig config = new AscioConfig();
		Dns env = config.getTesting().getDns();
		try {
			Response response = env.getClient().restoreZone("testing-ascio.com");			
			System.out.println("response\n");
			System.out.println("RestoreZone Code\t:" + response.getResultCode());
			System.out.println("RestoreZone 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 RestoreZoneResponse();
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.