PHP 5 ValidateOrder

Submitting an order. The Order ID is returned in the order object passed by reference.

Response ValidateOrder(string $sessionId,Order $order)

Response codes

ResultCodeMessageValue
200OK
400Order not validatedMessages
401Authorization failed
405Access denied
554Transaction failed

ValidateOrder request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
order

ValidateOrderResponse

Property
ValidateOrderResult

PHP 5 example

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

//Domain

$domain= array(

);
//Order

$order= array(
	"Type" => "NotSet",
	"Domain" => $domain
);
//ValidateOrder

$validateOrder= array(
	"sessionId" => env.getSessionId(),
	"order" => $order
);
try{	
    $result = $client->validateOrder($validateOrder);
    echo "ResultCode : ".$result->ValidateOrderResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->ValidateOrderResult->Message."\r\n";
    if($result->ValidateOrderResult->Values) {
        foreach($result->ValidateOrderResult->Values as $key => $value) {
            echo $value->string."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

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)