Ascio Web Service v3
C# CreateOrder - ContactUpdate
Replaces the contact with a new handle. There are 2 ways to submit the new Registrant: With the Contact Update, it is possible to change Tech Contact, Admistrative Contact and Billing Contact in one request.
CreateOrderResponse CreateOrder(SecurityHeaderDetails securityHeader,CreateOrderRequest request)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | Order validated | |
200 | Order received | |
400 | Order not validated | Messages |
401 | Authorization failed | |
405 | Access denied |
CreateOrder Request
Property | Type |
---|---|
request |
CreateOrderResponse
Property | Description |
---|---|
CreateOrderResult | |
OrderInfo | |
ResultCode | Example: 1 |
ResultMessage | |
Errors |
Used in Classes
Property | Value |
OrderType | ContactUpdate |
---|---|
request | DomainOrderRequest |
C# example
AscioServices services = new ServiceReference1.AscioServiceClient();
SecurityHeaderDetails securityHeader = new SecurityHeaderDetails();
securityHeader.Account = "username";
securityHeader.Password = "password";
KeyValue keyValue = new KeyValue();
keyValue.Key = "Title";
keyValue.KeySpecified = true;
keyValue.Value = "Mr.";
keyValue.ValueSpecified = true;
Extensions adminExtensions = new Extensions({(
new KeyValue("Title", "Mrs.")
}
);
Contact admin = new Contact();
admin.FirstName = "John";
admin.FirstNameSpecified = true;
admin.LastName = "Doe";
admin.LastNameSpecified = true;
admin.OrgName = "Ascio";
admin.OrgNameSpecified = true;
admin.Address1 = "Address1Test";
admin.Address1Specified = true;
admin.Address2 = "Address2Test";
admin.Address2Specified = true;
admin.City = "CityTest";
admin.CitySpecified = true;
admin.State = "StateTest";
admin.StateSpecified = true;
admin.PostalCode = "888349";
admin.PostalCodeSpecified = true;
admin.CountryCode = "DK";
admin.CountryCodeSpecified = true;
admin.Phone = "+45.123456789";
admin.PhoneSpecified = true;
admin.Fax = "+45.987654321";
admin.FaxSpecified = true;
admin.Email = email@email.com
admin.Type = "owner";
admin.TypeSpecified = true;
admin.Details = "DetailsTest";
admin.DetailsSpecified = true;
admin.OrganisationNumber = "OrganisationNumberTest";
admin.OrganisationNumberSpecified = true;
admin.Extensions = adminExtensions;
KeyValue keyValue = new KeyValue();
keyValue.Key = "Title";
keyValue.KeySpecified = true;
keyValue.Value = "Mr.";
keyValue.ValueSpecified = true;
Extensions techExtensions = new Extensions({(
new KeyValue("Title", "Mrs.")
}
);
Contact tech = new Contact();
tech.FirstName = "John";
tech.FirstNameSpecified = true;
tech.LastName = "Doe";
tech.LastNameSpecified = true;
tech.OrgName = "Ascio";
tech.OrgNameSpecified = true;
tech.Address1 = "Address1Test";
tech.Address1Specified = true;
tech.Address2 = "Address2Test";
tech.Address2Specified = true;
tech.City = "CityTest";
tech.CitySpecified = true;
tech.State = "StateTest";
tech.StateSpecified = true;
tech.PostalCode = "888349";
tech.PostalCodeSpecified = true;
tech.CountryCode = "DK";
tech.CountryCodeSpecified = true;
tech.Phone = "+45.123456789";
tech.PhoneSpecified = true;
tech.Fax = "+45.987654321";
tech.FaxSpecified = true;
tech.Email = email@email.com
tech.Type = "owner";
tech.TypeSpecified = true;
tech.Details = "DetailsTest";
tech.DetailsSpecified = true;
tech.OrganisationNumber = "OrganisationNumberTest";
tech.OrganisationNumberSpecified = true;
tech.Extensions = techExtensions;
KeyValue keyValue = new KeyValue();
keyValue.Key = "Title";
keyValue.KeySpecified = true;
keyValue.Value = "Mr.";
keyValue.ValueSpecified = true;
Extensions billingExtensions = new Extensions({(
new KeyValue("Title", "Mrs.")
}
);
Contact billing = new Contact();
billing.FirstName = "John";
billing.FirstNameSpecified = true;
billing.LastName = "Doe";
billing.LastNameSpecified = true;
billing.OrgName = "Ascio";
billing.OrgNameSpecified = true;
billing.Address1 = "Address1Test";
billing.Address1Specified = true;
billing.Address2 = "Address2Test";
billing.Address2Specified = true;
billing.City = "CityTest";
billing.CitySpecified = true;
billing.State = "StateTest";
billing.StateSpecified = true;
billing.PostalCode = "888349";
billing.PostalCodeSpecified = true;
billing.CountryCode = "DK";
billing.CountryCodeSpecified = true;
billing.Phone = "+45.123456789";
billing.PhoneSpecified = true;
billing.Fax = "+45.987654321";
billing.FaxSpecified = true;
billing.Email = email@email.com
billing.Type = "owner";
billing.TypeSpecified = true;
billing.Details = "DetailsTest";
billing.DetailsSpecified = true;
billing.OrganisationNumber = "OrganisationNumberTest";
billing.OrganisationNumberSpecified = true;
billing.Extensions = billingExtensions;
Domain domain = new Domain();
domain.Name = "ascio-is-great.com";
domain.Admin = admin;
domain.Tech = tech;
domain.Billing = billing;
domain.LocalPresence = false;
DomainOrderRequest request = new DomainOrderRequest();
request.Type = OrderType.ContactUpdate;
request.TypeSpecified = true;
request.TransactionComment = "TransactionCommentTest";
request.TransactionCommentSpecified = true;
request.Domain = domain;
CreateOrderResponse response = services.CreateOrder(securityHeader, request);
if (response.ResultCode == 200) {
Console.WriteLine("My new orderId is : " + request.OrderInfo.OrderId);
} else {
if (response.Errors != null) {
Console.WriteLine(String.Join(",", response.Errors));
}
Console.WriteLine(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.