Ascio Web Service v3
C# CreateRegistrant
CreateRegistrantResponse CreateRegistrant(SecurityHeaderDetails securityHeader,CreateRegistrantRequest request)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | OK | |
401 | Authorization failed | |
501 | Syntax error in parameters or arguments | |
506 | Required attribute missing in request |
CreateRegistrant Request
Property |
---|
request |
CreateRegistrantResponse
Property | Type | Description |
---|---|---|
CreateRegistrantResult | ||
Registrant | ||
ResultCode | Example: 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.
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.