C# UploadMessage

Uploads a document. The document can be provided to the order by referring to the DocumentId in the order properties.

Response UploadMessage(string sessionId,string orderId,string fileName,base64 content)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
404Object not found

UploadMessage request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
orderId
message

UploadMessageResponse

Property
UploadMessageResult

C# example

AscioServices services = new AscioServices();


attachment =  new Attachment();
attachment.Data = "DataTest";
attachment.FileName = "anything.jpg";
attachments = array($attachment);


message =  new Message();
message.Attachments = attachments;
message.Body = "BodyTest";
message.Created = "CreatedTest";
message.FromAddress = "administrator@ascio-test-domain.com";
message.Subject = "base64-encoded or 7 Bit ASCII";
message.ToAddress = "ToAddressTest";
message.Type = MessageType::Message_to_Partner;;
Response response = services.UploadMessage(todo);

if (response.ResultCode == 200) {
	Console.WriteLine("OK");
} else {
	Console.WriteLine("Error: "+response.ResultMessage+" ("+response.resultMessage+")";
}
WSDL for AWS v2
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)