Ascio Web Service v2

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 ServiceReference1.AscioServices();


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

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

Message 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)
Please configure the IP-Whitelisting in the portal/demo-portal.