Ascio Web Service v2
Perl SearchOrder
Response SearchOrder(string sessionId,SearchOrderRequest orderRequest)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | OK | |
401 | Authorization failed | |
405 | Access denied |
SearchOrder Request
Property | Description |
---|---|
sessionId | Example: o58t9fjgw9bjarp6q7byv13e |
orderRequest |
SearchOrderResponse
Property | Description |
---|---|
SearchOrderResult | |
totalOrders | Example: 1 |
orders |
Perl example
use SOAP::Lite;
use Date::Format;
$proxy = "https://aws.demo.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", "NotSet"),
SOAP::Data->name("OrderType", "Contact_Update"),
SOAP::Data->name("OrderType", "Change_Locks"),
SOAP::Data->name("OrderType", "Delete_Domain"),
SOAP::Data->name("OrderType", "Registrant_Details_Update"),
SOAP::Data->name("OrderType", "Expire_Domain"),
SOAP::Data->name("OrderType", "Nameserver_Update"),
SOAP::Data->name("OrderType", "Owner_Change"),
SOAP::Data->name("OrderType", "Queue_Domain"),
SOAP::Data->name("OrderType", "Register_Domain"),
SOAP::Data->name("OrderType", "Renew_Domain"),
SOAP::Data->name("OrderType", "Restore_Domain"),
SOAP::Data->name("OrderType", "Transfer_Domain"),
SOAP::Data->name("OrderType", "Unexpire_Domain"),
SOAP::Data->name("OrderType", "Transfer_Away"),
SOAP::Data->name("OrderType", "Autorenew_Domain"),
SOAP::Data->name("OrderType", "Autodelete_Domain"),
SOAP::Data->name("OrderType", "Defensive_Registration"),
SOAP::Data->name("OrderType", "Name_Watch"),
SOAP::Data->name("OrderType", "Domain_Details_Update"),
SOAP::Data->name("OrderType", "Import_Domain"),
SOAP::Data->name("OrderType", "Partner_Change"),
SOAP::Data->name("OrderType", "Support"),
SOAP::Data->name("OrderType", "DeQueue"),
SOAP::Data->name("OrderType", "Update_AuthInfo"))),
SOAP::Data->name('OrderStatusTypes',SOAP::Data->value(
SOAP::Data->name("OrderStatusType", "NotSet"),
SOAP::Data->name("OrderStatusType", "Received"),
SOAP::Data->name("OrderStatusType", "Validated"),
SOAP::Data->name("OrderStatusType", "Invalid"),
SOAP::Data->name("OrderStatusType", "Pending"),
SOAP::Data->name("OrderStatusType", "Processing"),
SOAP::Data->name("OrderStatusType", "Pending_Documentation"),
SOAP::Data->name("OrderStatusType", "Pending_End_User_Action"),
SOAP::Data->name("OrderStatusType", "Documentation_Received"),
SOAP::Data->name("OrderStatusType", "Documentation_Approved"),
SOAP::Data->name("OrderStatusType", "Documentation_Not_Approved"),
SOAP::Data->name("OrderStatusType", "Pending_NIC_Processing"),
SOAP::Data->name("OrderStatusType", "Pending_NIC_Document_Approval"),
SOAP::Data->name("OrderStatusType", "Pending_Post_Processing"),
SOAP::Data->name("OrderStatusType", "Pending_Internal_Processing"),
SOAP::Data->name("OrderStatusType", "Completed"),
SOAP::Data->name("OrderStatusType", "Failed"),
SOAP::Data->name("OrderStatusType", "Authentication_Failed"))),
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','RegistrarTag'),
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)
Please configure the IP-Whitelisting in the portal/demo-portal.
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.