Perl 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

Perl example

use SOAP::Lite;
use Date::Format;
$proxy = "https://awstest.ascio.com/2012/01/01/AscioService.svc";
$namespace = "http://www.ascio.com/2007/01";
$soap = SOAP::Lite -> on_action( sub { "http://www.ascio.com/2007/01/IOrderService/SearchOrder" } ) -> proxy($proxy);
$soap->autotype(0);
$method = SOAP::Data->name("SearchOrder")
->attr({xmlns => $namespace});

#PagingInfo
$pageInfo =  \SOAP::Data->value(
	SOAP::Data->name('PageIndex',1),
	SOAP::Data->name('PageSize',1)
);

#SearchOrderRequest
$orderRequest =  \SOAP::Data->value(
	SOAP::Data->name('OrderTypes',SOAP::Data->value(SOAP::Data->name('OrderType','Register_Domain'))),
	SOAP::Data->name('OrderStatusTypes',SOAP::Data->value(SOAP::Data->name('OrderStatusType','Validated'))),
	SOAP::Data->name('FromDate',time2str('%Y-%m-%dT%H:%M:%SZ', time, 'EST')),
	SOAP::Data->name('ToDate',time2str('%Y-%m-%dT%H:%M:%SZ', time, 'EST')),
	SOAP::Data->name('DomainName','testdomain123.com'),
	SOAP::Data->name('TransactionComment','TransactionCommentTest'),
	SOAP::Data->name('Comments','CommentsTest'),
	SOAP::Data->name('IncludeDomainDetails','true'),
	SOAP::Data->name('PageInfo',$pageInfo),
	SOAP::Data->name('OrderSort','CreDateAsc')
);
@query = (
	SOAP::Data->name(sessionId => $sessionId),
	SOAP::Data->name(orderRequest => $orderRequest)
);

$result = $soap->call($method => @query);
unless ($result->fault) {
	$response = $result->valueof("//SearchOrderResponse/SearchOrderResult");
	print "ResultCode : $response->{'ResultCode'}\r\n";
	print "Message : $response->{'Message'}\r\n";
	if ($response->{"ResultCode"} == 200) {
		print "OK";
	}
}
else {
	print join ", ",
	$result->faultcode,
	$result->faultstring,
	$result->faultdetail;
}
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)