Ascio Web Service v3

Java Axis GetMarks

Search for marks

GetMarksResponse GetMarks(SecurityHeaderDetails securityHeader,GetMarksRequest request)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
501Syntax error in parameters or arguments
506Required attribute missing in request

GetMarks Request

Property
request

GetMarksResponse

PropertyDescription
GetMarksResult
TotalCountExample: 1
MarkInfos
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

Java Axis example

package ascio.v3.examples;
import java.util.Calendar;
import com.ascio.www._2013._02.*;
import ascio.lib.*;

public class GetMarksExample {
	public static GetMarksResponse main() {
		AscioConfig config = new AscioConfig();
		V3 env = config.getTesting().getV3();

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

		GetMarksRequest request =  new GetMarksRequest();
		request.setObjectNames(new String[]{
		});
		request.setHandles(new String[]{
		});
		request.setStatus("StatusTest");
		request.setMarkType("MarkTypeTest");
		request.setObjectComment("Example Object Comment");
		request.setCreationFromDate(Calendar.getInstance());
		request.setCreationToDate(Calendar.getInstance());
		request.setExpireFromDate(Calendar.getInstance());
		request.setExpireToDate(Calendar.getInstance());
		request.setOwnerName("OwnerNameTest");
		request.setOwnerOrganizationName("OwnerOrganizationNameTest");
		request.setOwnerEmail("OwnerEmailTest");
		request.setCustomerReferenceExternalId("CustomerReferenceExternalIdTest");
		request.setCustomerReferenceDescription("CustomerReferenceDescriptionTest");
		request.setOrderSort(MarkSortType.CreatedAsc);
		request.setPageInfo(pageInfo);

		try {
			GetMarksResponse response = env.getClient().getMarks(request);			
			System.out.println("response\n");
			System.out.println("GetMarks Code\t:" + response.getResultCode());
			System.out.println("GetMarks Message\t: " + response.getResultMessage());

			if(response.getResultCode() > 200){
				for(String error : response.getErrors()) {
					System.out.print(error);
				}	
			}		
			return response;
		} catch (Exception e) {
			System.out.print(e);
		}
		return new GetMarksResponse();package ascio.v3.examples;
import java.util.Calendar;
import com.ascio.www._2013._02.*;
import ascio.lib.*;

public class GetMarksExample {
	public static GetMarksResponse main() {
		AscioConfig config = new AscioConfig();
		V3 env = config.getTesting().getV3();

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

		GetMarksRequest request =  new GetMarksRequest();
		request.setObjectNames(new String[]{
		});
		request.setHandles(new String[]{
		});
		request.setStatus("StatusTest");
		request.setMarkType("MarkTypeTest");
		request.setObjectComment("Example Object Comment");
		request.setCreationFromDate(Calendar.getInstance());
		request.setCreationToDate(Calendar.getInstance());
		request.setExpireFromDate(Calendar.getInstance());
		request.setExpireToDate(Calendar.getInstance());
		request.setOwnerName("OwnerNameTest");
		request.setOwnerOrganizationName("OwnerOrganizationNameTest");
		request.setOwnerEmail("OwnerEmailTest");
		request.setCustomerReferenceExternalId("CustomerReferenceExternalIdTest");
		request.setCustomerReferenceDescription("CustomerReferenceDescriptionTest");
		request.setOrderSort(MarkSortType.CreatedAsc);
		request.setPageInfo(pageInfo);

		try {
			GetMarksResponse response = env.getClient().getMarks(request);			
			System.out.println("response\n");
			System.out.println("GetMarks Code\t:" + response.getResultCode());
			System.out.println("GetMarks Message\t: " + response.getResultMessage());

			if(response.getResultCode() > 200){
				for(String error : response.getErrors()) {
					System.out.print(error);
				}	
			}		
			return response;
		} catch (Exception e) {
			System.out.print(e);
		}
		return new GetMarksResponse();
WSDL for AWS v3
https://aws.demo.ascio.com/v3/aws.wsdl (OTE)
https://aws.ascio.com/v3/aws.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.