Ascio Web Service v2

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(__DIR__."/../service/autoload.php");
require(__DIR__."/../../lib/AscioConfig.php");
use ascio\v2 as ascio;
use ascio\lib as lib;
function searchOrderExample() {
	$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([
		"NotSet", 
		"Contact_Update", 
		"Change_Locks", 
		"Delete_Domain", 
		"Registrant_Details_Update", 
		"Expire_Domain", 
		"Nameserver_Update", 
		"Owner_Change", 
		"Queue_Domain", 
		"Register_Domain", 
		"Renew_Domain", 
		"Restore_Domain", 
		"Transfer_Domain", 
		"Unexpire_Domain", 
		"Transfer_Away", 
		"Autorenew_Domain", 
		"Autodelete_Domain", 
		"Defensive_Registration", 
		"Name_Watch", 
		"Domain_Details_Update", 
		"Import_Domain", 
		"Partner_Change", 
		"Support", 
		"DeQueue", 
		"Update_AuthInfo"
	]);
	$orderRequest->setOrderStatusTypes([
		"NotSet", 
		"Received", 
		"Validated", 
		"Invalid", 
		"Pending", 
		"Processing", 
		"Pending_Documentation", 
		"Pending_End_User_Action", 
		"Documentation_Received", 
		"Documentation_Approved", 
		"Documentation_Not_Approved", 
		"Pending_NIC_Processing", 
		"Pending_NIC_Document_Approval", 
		"Pending_Post_Processing", 
		"Pending_Internal_Processing", 
		"Completed", 
		"Failed", 
		"Authentication_Failed"
	]);
	$orderRequest->setFromDate("FromDateTest");
	$orderRequest->setToDate("ToDateTest");
	$orderRequest->setDomainName("ascio-test-domain".time().".com");
	$orderRequest->setTransactionComment("TransactionCommentTest");
	$orderRequest->setComments("RegistrarTag");
	$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;
}
searchOrderExample();
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)
Please configure the IP-Whitelisting in the portal/demo-portal.