Ascio Web Service v3

Java Axis GetDomains

Search for domains.

GetDomainsResponse GetDomains(SecurityHeaderDetails securityHeader,GetDomainsRequest request)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
404Object not found
405Access denied
406Invalid ObjectClassName
501Syntax error in parameters or arguments

GetDomains Request

Property
request

GetDomainsResponse

PropertyDescription
GetDomainsResult
TotalCountExample: 1
DomainInfos
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

Java Axis example

package ascio.v3.examples;
import java.util.Calendar;
import com.ascio.www._2013._02.*;
import ascio.lib.*;

public class GetDomainsExample {
	public static GetDomainsResponse main() {
		AscioConfig config = new AscioConfig();
		V3 env = config.getTesting().getV3();

		PagingInfo pageInfo =  new PagingInfo();
		pageInfo.setPageIndex(1);
		pageInfo.setPageSize(1);

		GetDomainsRequest request =  new GetDomainsRequest();
		request.setObjectNames(new String[]{
		});
		request.setHandles(new String[]{
		});
		request.setTlds(new String[]{
			"com", 
			"net", 
			"org", 
			"info", 
			"biz", 
			"guru"
		});
		request.setStatus("StatusTest");
		request.setDomainType(DomainType.Premium);
		request.setProxyType(ProxyType.Privacy);
		request.setDomainComment("DomainCommentTest");
		request.setCreationFromDate(Calendar.getInstance());
		request.setCreationToDate(Calendar.getInstance());
		request.setExpireFromDate(Calendar.getInstance());
		request.setExpireToDate(Calendar.getInstance());
		request.setOwnerName("OwnerNameTest");
		request.setOwnerOrganizationName("OwnerOrganizationNameTest");
		request.setOwnerEmail("OwnerEmailTest");
		request.setContactFirstName("ContactFirstNameTest");
		request.setContactLastName("ContactLastNameTest");
		request.setContactOrganizationName("ContactOrganizationNameTest");
		request.setContactEmail("ContactEmailTest");
		request.setNameServerHostName("NameServerHostNameTest");
		request.setNameServerIPv4("NameServerIPv4Test");
		request.setNameServerIPv6("NameServerIPv6Test");
		request.setCustomerReferenceExternalId("CustomerReferenceExternalIdTest");
		request.setCustomerReferenceDescription("CustomerReferenceDescriptionTest");
		request.setOrderSort(DomainSortType.CreatedAsc);
		request.setPageInfo(pageInfo);
		request.setLocalPresence(false);
comnetorginfobizguru
		try {
			GetDomainsResponse response = env.getClient().getDomains(request);			
			System.out.println("response\n");
			System.out.println("GetDomains Code\t:" + response.getResultCode());
			System.out.println("GetDomains 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 GetDomainsResponse();package ascio.v3.examples;
import java.util.Calendar;
import com.ascio.www._2013._02.*;
import ascio.lib.*;

public class GetDomainsExample {
	public static GetDomainsResponse main() {
		AscioConfig config = new AscioConfig();
		V3 env = config.getTesting().getV3();

		PagingInfo pageInfo =  new PagingInfo();
		pageInfo.setPageIndex(1);
		pageInfo.setPageSize(1);

		GetDomainsRequest request =  new GetDomainsRequest();
		request.setObjectNames(new String[]{
		});
		request.setHandles(new String[]{
		});
		request.setTlds(new String[]{
			"com", 
			"net", 
			"org", 
			"info", 
			"biz", 
			"guru"
		});
		request.setStatus("StatusTest");
		request.setDomainType(DomainType.Premium);
		request.setProxyType(ProxyType.Privacy);
		request.setDomainComment("DomainCommentTest");
		request.setCreationFromDate(Calendar.getInstance());
		request.setCreationToDate(Calendar.getInstance());
		request.setExpireFromDate(Calendar.getInstance());
		request.setExpireToDate(Calendar.getInstance());
		request.setOwnerName("OwnerNameTest");
		request.setOwnerOrganizationName("OwnerOrganizationNameTest");
		request.setOwnerEmail("OwnerEmailTest");
		request.setContactFirstName("ContactFirstNameTest");
		request.setContactLastName("ContactLastNameTest");
		request.setContactOrganizationName("ContactOrganizationNameTest");
		request.setContactEmail("ContactEmailTest");
		request.setNameServerHostName("NameServerHostNameTest");
		request.setNameServerIPv4("NameServerIPv4Test");
		request.setNameServerIPv6("NameServerIPv6Test");
		request.setCustomerReferenceExternalId("CustomerReferenceExternalIdTest");
		request.setCustomerReferenceDescription("CustomerReferenceDescriptionTest");
		request.setOrderSort(DomainSortType.CreatedAsc);
		request.setPageInfo(pageInfo);
		request.setLocalPresence(false);

		try {
			GetDomainsResponse response = env.getClient().getDomains(request);			
			System.out.println("response\n");
			System.out.println("GetDomains Code\t:" + response.getResultCode());
			System.out.println("GetDomains 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 GetDomainsResponse();
WSDL for AWS v3
https://aws.demo.ascio.com/v3/aws.wsdl (OTE)
https://aws.ascio.com/v3/aws.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.