PHP 5 SearchOrder

Search for an order on existing order objects.

Response SearchOrder(string $sessionId,SearchOrderRequest $orderRequest)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
405Access denied

SearchOrder request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
orderRequest

SearchOrderResponse

PropertyDescription
SearchOrderResult
totalOrdersExample: 1
orders

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 ));

//PagingInfo

$pageInfo= array(
	"PageIndex" => 1,
	"PageSize" => 1
);
//SearchOrderRequest

$orderRequest= array(
	"OrderTypes" => array(orderTypes),
	"OrderStatusTypes" => array(orderStatusTypes),
	"FromDate" => "FromDateTest",
	"ToDate" => "ToDateTest",
	"DomainName" => $env->getProperties()->getProperty("DomainName"),
	"TransactionComment" => "TransactionCommentTest",
	"Comments" => "CommentsTest",
	"IncludeDomainDetails" => true,
	"PageInfo" => $pageInfo,
	"OrderSort" => "CreDateAsc"
);
//SearchOrder

$searchOrder= array(
	"sessionId" => env.getSessionId(),
	"orderRequest" => $orderRequest
);
try{	
    $result = $client->searchOrder($searchOrder);
    echo "ResultCode : ".$result->SearchOrderResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->SearchOrderResult->Message."\r\n";
    if($result->SearchOrderResult->Values) {
        foreach($result->SearchOrderResult->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)