Ascio Web Service v2
C# UploadMessage
Response UploadMessage(string sessionId,string orderId,string fileName,base64 content)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | OK | |
401 | Authorization failed | |
404 | Object not found |
UploadMessage Request
Property | Description |
---|---|
sessionId | Example: 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.
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.