PHP 5 Classes 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 Classes example

<?php
namespace ascio\v2\examples;
require("../service/autoload.php");
require("../../lib/AscioConfig.php");
use ascio\v2 as ascio;
use ascio\lib as lib;
function example() {
	$config = new lib\Config();
	$env = $config->get("testing"); //testing or live
	$sessionId = "12345";
	$ascioClient	 = new ascio\AscioServices(array("trace" => true),$env->getWsdl("v2"));

	$pageInfo =  new ascio\PagingInfo();
	$pageInfo->setPageIndex(1);
	$pageInfo->setPageSize(1);

	$orderRequest =  new ascio\SearchOrderRequest();
	$orderRequest->setOrderTypes(array(OrderType.Register_Domain));
	$orderRequest->setOrderStatusTypes(array(OrderStatusType.Validated));
	$orderRequest->setFromDate("FromDateTest");
	$orderRequest->setToDate("ToDateTest");
	$orderRequest->setDomainName($env->getProperties()->getProperty("DomainName"));
	$orderRequest->setTransactionComment("TransactionCommentTest");
	$orderRequest->setComments("CommentsTest");
	$orderRequest->setIncludeDomainDetails(true);
	$orderRequest->setPageInfo($pageInfo);
	$orderRequest->setOrderSort(ascio\SearchOrderSortType::CreDateAsc);
	try {
		 $response = $ascioClient->SearchOrder(new ascio\SearchOrder($sessionId, $orderRequest));
        } catch (\Exception $e) {
    		echo ("[".$e->faultcode . "] ". $e->faultstring);
	    	return;
        
        }
	$result = $response->getSearchOrderResult();
	echo "Code: ".$result->getResultCode()."\n";
	echo "Message: ".$result->getMessage()."\n";  
	return $result;
}
example();
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)