Ascio Web Service v3
C# UploadMessage
UploadMessageResponse UploadMessage(SecurityHeaderDetails securityHeader,UploadMessageRequest request)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | OK | |
401 | Authorization failed | |
404 | Object not found |
UploadMessage Request
Property |
---|
request |
UploadMessageResponse
Property | Description |
---|---|
UploadMessageResult | |
MessageId | Example: 1 |
ResultCode | Example: 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.
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.