Ascio Web Service v3

C# CreateRegistrant

Creating Registrant object. The registrantHandle will be returned in the registrant object passed by reference.

CreateRegistrantResponse CreateRegistrant(SecurityHeaderDetails securityHeader,CreateRegistrantRequest request)

Response codes

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

CreateRegistrant Request

Property
request

CreateRegistrantResponse

PropertyTypeDescription
CreateRegistrantResult
Registrant
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

C# example

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

Registrant registrant =  new Registrant();
registrant.FirstName = "John";
registrant.FirstNameSpecified = true;
registrant.LastName = "Doe";
registrant.LastNameSpecified = true;
registrant.OrgName = "Ascio";
registrant.OrgNameSpecified = true;
registrant.Address1 = "Address1Test";
registrant.Address1Specified = true;
registrant.Address2 = "Address2Test";
registrant.Address2Specified = true;
registrant.City = "CityTest";
registrant.CitySpecified = true;
registrant.State = "StateTest";
registrant.StateSpecified = true;
registrant.PostalCode = "888349";
registrant.PostalCodeSpecified = true;
registrant.CountryCode = "DK";
registrant.CountryCodeSpecified = true;
registrant.Phone = "+45.123456789";
registrant.PhoneSpecified = true;
registrant.Fax = "+45.987654321";
registrant.FaxSpecified = true;
registrant.Email = "administrator@ascio-test-domain.com"
registrant.Type = "owner";
registrant.TypeSpecified = true;
registrant.Details = "DetailsTest";
registrant.DetailsSpecified = true;
registrant.OrganisationNumber = "OrganisationNumberTest";
registrant.OrganisationNumberSpecified = true;
registrant.VatNumber = "VatNumberTest";
registrant.VatNumberSpecified = true;
registrant.NexusCategory = "NexusCategoryTest";
registrant.NexusCategorySpecified = true;

CreateRegistrantRequest request =  new CreateRegistrantRequest();
request.Registrant = registrant;;
CreateRegistrantResponse response = services.CreateRegistrant(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.