Ascio Web Service v3

Class UploadMessageRequest

PropertyDescription
OrderIdExample: "TEST123456"
Message
<?php
namespace ascio\v3\examples;
require("../service/autoload.php");
require("../../lib/AscioConfig.php");
use ascio\v3 as ascio;


$attachment =  new ascio\Attachment();
$attachment->setFileName("anything.jpg");
$attachment->setContent(base64_encode(123));

$attachments =  new ascio\ArrayOfAttachment();
$attachments->setAttachment([$attachment]);

$message =  new ascio\Message();
$message->setAttachments($attachments);
$message->setBody("BodyTest");
$message->setCreated(new \DateTime());
$message->setFromAddress("administrator@ascio-test-domain.com");
$message->setSubject("base64-encoded or 7 Bit ASCII");
$message->setToAddress("ToAddressTest");
$message->setType(ascio\MessageType::MessageToPartner);

$uploadMessageRequest =  new ascio\UploadMessageRequest();
$uploadMessageRequest->setOrderId("TEST123456");
$uploadMessageRequest->setMessage($message);
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.