Ascio Web Service v2

Java Axis 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

Java Axis example

package ascio.v2.examples;
import java.util.Calendar;
import com.ascio.www._2007._01.*;
import com.ascio.www._2007._01.holders.*;
import ascio.lib.*;
import javax.xml.rpc.holders.*;

public class SearchOrderExample {
	public static Response main() {
		AscioConfig config = new AscioConfig();
		V2 env = config.getTesting().getV2();

		PagingInfo pageInfo =  new PagingInfo();
		pageInfo.setPageIndex(1);
		pageInfo.setPageSize(1);

		SearchOrderRequest orderRequest =  new SearchOrderRequest();
		orderRequest.setOrderTypes(new OrderType[]{
			"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(new OrderStatusType[]{
			"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(Calendar.getInstance());
		orderRequest.setToDate(Calendar.getInstance());
		orderRequest.setDomainName("ascio-test-domain"+System.currentTimeMillis()+".com");
		orderRequest.setTransactionComment("TransactionCommentTest");
		orderRequest.setComments("RegistrarTag");
		orderRequest.setIncludeDomainDetails(true);
		orderRequest.setPageInfo(pageInfo);
		orderRequest.setOrderSort(SearchOrderSortType.CreDateAsc);
NotSetContact_UpdateChange_LocksDelete_DomainRegistrant_Details_UpdateExpire_DomainNameserver_UpdateOwner_ChangeQueue_DomainRegister_DomainRenew_DomainRestore_DomainTransfer_DomainUnexpire_DomainTransfer_AwayAutorenew_DomainAutodelete_DomainDefensive_RegistrationName_WatchDomain_Details_UpdateImport_DomainPartner_ChangeSupportDeQueueUpdate_AuthInfoNotSetReceivedValidatedInvalidPendingProcessingPending_DocumentationPending_End_User_ActionDocumentation_ReceivedDocumentation_ApprovedDocumentation_Not_ApprovedPending_NIC_ProcessingPending_NIC_Document_ApprovalPending_Post_ProcessingPending_Internal_ProcessingCompletedFailedAuthentication_Failed
		try {
			/**outputs holders*/

			ResponseHolder searchOrderResultHolder = new ResponseHolder();
			IntegerWrapperHolder totalOrdersHolder = new IntegerWrapperHolder();
			ArrayOfOrderHolder ordersHolder = new ArrayOfOrderHolder();

			env.getClient().searchOrder(env.getSessionId(), orderRequest, searchOrderResultHolder, totalOrdersHolder, ordersHolder);

			Response response = searchOrderResultHolder.value;

			System.out.println("SearchOrder ResultCode\t: " + response.getResultCode().toString());
			System.out.println("SearchOrder Message\t: " + response.getMessage());
			System.out.println("totalOrders\t\t: " + totalOrdersHolder.value);        
        
			if(response.getResultCode() == 400) {
				for( String value : response.getValues()) {
					System.out.println("Error:	" + value);
				}
			}
			return response;
		} catch (Exception e) {
			System.out.print(e);
		}
		return new Response();package ascio.v2.examples;
import java.util.Calendar;
import com.ascio.www._2007._01.*;
import com.ascio.www._2007._01.holders.*;
import ascio.lib.*;
import javax.xml.rpc.holders.*;

public class SearchOrderExample {
	public static Response main() {
		AscioConfig config = new AscioConfig();
		V2 env = config.getTesting().getV2();

		PagingInfo pageInfo =  new PagingInfo();
		pageInfo.setPageIndex(1);
		pageInfo.setPageSize(1);

		SearchOrderRequest orderRequest =  new SearchOrderRequest();
		orderRequest.setOrderTypes(new OrderType[]{
			"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(new OrderStatusType[]{
			"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(Calendar.getInstance());
		orderRequest.setToDate(Calendar.getInstance());
		orderRequest.setDomainName("ascio-test-domain"+System.currentTimeMillis()+".com");
		orderRequest.setTransactionComment("TransactionCommentTest");
		orderRequest.setComments("RegistrarTag");
		orderRequest.setIncludeDomainDetails(true);
		orderRequest.setPageInfo(pageInfo);
		orderRequest.setOrderSort(SearchOrderSortType.CreDateAsc);

		try {
			/**outputs holders*/

			ResponseHolder searchOrderResultHolder = new ResponseHolder();
			IntegerWrapperHolder totalOrdersHolder = new IntegerWrapperHolder();
			ArrayOfOrderHolder ordersHolder = new ArrayOfOrderHolder();

			env.getClient().searchOrder(env.getSessionId(), orderRequest, searchOrderResultHolder, totalOrdersHolder, ordersHolder);

			Response response = searchOrderResultHolder.value;

			System.out.println("SearchOrder ResultCode\t: " + response.getResultCode().toString());
			System.out.println("SearchOrder Message\t: " + response.getMessage());
			System.out.println("totalOrders\t\t: " + totalOrdersHolder.value);        
        
			if(response.getResultCode() == 400) {
				for( String value : response.getValues()) {
					System.out.println("Error:	" + value);
				}
			}
			return response;
		} catch (Exception e) {
			System.out.print(e);
		}
		return new Response();
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.