Ascio Web Service v3

C# 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

C# example

AscioServices services = new ServiceReference1.AscioServiceClient();
SecurityHeaderDetails securityHeader = new SecurityHeaderDetails();
securityHeader.Account = "username";
securityHeader.Password = "password";

PagingInfo pageInfo =  new PagingInfo();
pageInfo.PageIndex = 1;
pageInfo.PageIndexSpecified = true;
pageInfo.PageSize = 1;
pageInfo.PageSizeSpecified = true;

GetDomainsRequest request =  new GetDomainsRequest();
request.ObjectNames = array(
	);
request.Handles = array(
	);
request.Tlds = array(
		"com", 
		"net", 
		"org", 
		"info", 
		"biz", 
		"guru"
	);
request.Status = "StatusTest";
request.StatusSpecified = true;
request.DomainType = DomainType.Premium;
request.DomainTypeSpecified = true;
request.ProxyType = ProxyType.Privacy;
request.ProxyTypeSpecified = true;
request.DomainComment = "DomainCommentTest";
request.DomainCommentSpecified = true;
request.CreationFromDate = new \DateTime();
request.CreationFromDateSpecified = true;
request.CreationToDate = new \DateTime();
request.CreationToDateSpecified = true;
request.ExpireFromDate = new \DateTime();
request.ExpireFromDateSpecified = true;
request.ExpireToDate = new \DateTime();
request.ExpireToDateSpecified = true;
request.OwnerName = "OwnerNameTest";
request.OwnerNameSpecified = true;
request.OwnerOrganizationName = "OwnerOrganizationNameTest";
request.OwnerOrganizationNameSpecified = true;
request.OwnerEmail = "OwnerEmailTest";
request.OwnerEmailSpecified = true;
request.ContactFirstName = "ContactFirstNameTest";
request.ContactFirstNameSpecified = true;
request.ContactLastName = "ContactLastNameTest";
request.ContactLastNameSpecified = true;
request.ContactOrganizationName = "ContactOrganizationNameTest";
request.ContactOrganizationNameSpecified = true;
request.ContactEmail = "ContactEmailTest";
request.ContactEmailSpecified = true;
request.NameServerHostName = "NameServerHostNameTest";
request.NameServerHostNameSpecified = true;
request.NameServerIPv4 = "NameServerIPv4Test";
request.NameServerIPv4Specified = true;
request.NameServerIPv6 = "NameServerIPv6Test";
request.NameServerIPv6Specified = true;
request.CustomerReferenceExternalId = "CustomerReferenceExternalIdTest";
request.CustomerReferenceExternalIdSpecified = true;
request.CustomerReferenceDescription = "CustomerReferenceDescriptionTest";
request.CustomerReferenceDescriptionSpecified = true;
request.OrderSort = DomainSortType.CreatedAsc;
request.OrderSortSpecified = true;
request.PageInfo = pageInfo;
request.LocalPresence = false;;
GetDomainsResponse response = services.GetDomains(securityHeader, request);

if (response.ResultCode == 200) {
	Console.WriteLine("OK");
} else {
	Console.WriteLine("Error: "+response.ResultMessage+" ("+response.resultMessage+")";
}
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.