PHP 5 UploadMessage

Upload Message

Upload a verification message. The partner can create own approval-websites. This is the proof that the partner did the verfication.

Response UploadMessage(UploadMessageRequest $request)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
501Syntax error in parameters or arguments
506Required attribute missing in request

UploadMessage Request

Property
request

UploadMessageResponse

PropertyDescription
UploadMessageResult
MessageIdExample: 1
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

PHP 5 example

<?php
$wsdl = "https://awstest.ascio.com/v3/aws.wsdl";
//$wsdl = "https://aws.ascio.com/2012/01/01/AscioService.wsdl";
$client = new SoapClient($wsdl,array( "trace" => 1 ));

//Attachment

$attachment= array(
	"FileName" => "anything.jpg",
	"Content" => "ContentTest"
);
//ArrayOfAttachment

$attachments= array(
	$attachment
);
//Message

$message= array(
	"Attachments" => $attachments,
	"Body" => "BodyTest",
	"Created" => "CreatedTest",
	"FromAddress" => "administrator@ascio-test-domain.com",
	"Subject" => "base64-encoded or 7 Bit ASCII",
	"ToAddress" => "ToAddressTest",
	"Type" => "OrderMail"
);
//UploadMessageRequest

$request= array(
	"OrderId" => "TEST123456",
	"Message" => $message
);
//UploadMessage

$uploadMessage= array(
	"request" => $request
);
try{	
    $result = $client->uploadMessage($uploadMessage);
    echo "ResultCode : ".$result->UploadMessageResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->UploadMessageResult->Message."\r\n";
    if($result->UploadMessageResult->Values) {
        foreach($result->UploadMessageResult->Values as $key => $value) {
            echo $value->string."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

WSDL for AWS v3
https://awstest.ascio.com/v3/aws.wsdl (OTE)
https://aws.ascio.com/v3/aws.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.