Ascio Web Service v3

C# UploadMessage

In case you decide to send your own ERRP messages, you can use this method, to send us the proof. The order-id is the order-id of the Autorenew/Autodelete order. In case you want to send the message before the autocomplete order, your can store the message, and send us the proof, after we started the Autorenew/Autodelete process. If we don't get an uploaded message, we will send the ERRP. Please click here for more information about the process: ERRP process

UploadMessageResponse UploadMessage(SecurityHeaderDetails securityHeader,UploadMessageRequest request)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
404Object not found

UploadMessage Request

Property
request

UploadMessageResponse

PropertyDescription
UploadMessageResult
MessageIdExample: 1
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

C# example

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

Attachment attachment =  new Attachment();
attachment.FileName = "anything.jpg";
attachment.FileNameSpecified = true;
attachment.Content = base64_encode(123);
attachment.ContentSpecified = true;

ArrayOfAttachment attachments =  new ArrayOfAttachment(array($attachment));

Message message =  new Message();
message.Attachments = attachments;
message.Body = "BodyTest";
message.BodySpecified = true;
message.Created = new \DateTime();
message.CreatedSpecified = true;
message.FromAddress = "administrator@ascio-test-domain.com";
message.FromAddressSpecified = true;
message.Subject = "base64-encoded or 7 Bit ASCII";
message.SubjectSpecified = true;
message.ToAddress = "ToAddressTest";
message.ToAddressSpecified = true;
message.Type = MessageType.MessageToPartner;
message.TypeSpecified = true;

UploadMessageRequest request =  new UploadMessageRequest();
request.OrderId = "TEST123456";
request.OrderIdSpecified = true;
request.Message = message;;
UploadMessageResponse response = services.UploadMessage(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.