PHP 5 UploadDocumentation

Upload Documentations

Some orders require documentation. I that case the partner will get a callback message, and use this method to upload the documentation. Attachments should be base64 encoded.

Response UploadDocumentation(UploadDocumentationRequest $request)

Response codes

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

UploadDocumentation Request

Property
request

UploadDocumentationResponse

PropertyDescription
UploadDocumentationResult
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

$documents= array(
	$attachment
);
//UploadDocumentationRequest

$request= array(
	"OrderId" => "TEST123456",
	"Documents" => $documents
);
//UploadDocumentation

$uploadDocumentation= array(
	"request" => $request
);
try{	
    $result = $client->uploadDocumentation($uploadDocumentation);
    echo "ResultCode : ".$result->UploadDocumentationResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->UploadDocumentationResult->Message."\r\n";
    if($result->UploadDocumentationResult->Values) {
        foreach($result->UploadDocumentationResult->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.