Ascio Web Service v3

C# CreateContact

Creating a contact. The contactHandle is returned in the contact object passed by reference.

CreateContactResponse CreateContact(SecurityHeaderDetails securityHeader,CreateContactRequest request)

Response codes

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

CreateContact Request

Property
request

CreateContactResponse

PropertyTypeDescription
CreateContactResult
Contact
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

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 contactExtensions =  new Extensions({(
		new KeyValue("Title", "Mrs.")
		}
	);

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

CreateContactRequest request =  new CreateContactRequest();
request.Contact = contact;;
CreateContactResponse response = services.CreateContact(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.