Previous Topic

Next Topic

Book Contents

Book Index

Handling responses for the Create Job Object example

The following example describes how to handle responses for the Create Job Object.

Response_create_job_type createJobResponse =

service.create_aj(createJobRequest);

System.out.println("Job Create status is " +createJobResponse.getStatus());

Response_data_jobs_job_create_job_type[] cj_jobs = createJobResponse.getJobs();

if (cj_jobs != null)

{

for (int i = 0; i < cj_jobs.length; i++)

{

// print specific job status

System.out.println("Job [" + i + "] Status = " +

cj_jobs[i].getStatus());

// print jobs data

System.out.println("Job [" + i + "] - Details: ");

Response_data_jobs_job_job_data_create_job_type cj_jobData

= cj_jobs[i].getJob_data();

System.out.println("Job [" + i + "] - rba = " +

cj_jobData.getRba());

System.out.println("Job [" + i + "] - order_id = " +

cj_jobData.getOrder_id());

System.out.println("Job [" + i + "] - job_name = " +

cj_jobData.getJob_name());

System.out.println("Job [" + i + "] - is_group = " +

cj_jobData.getIs_group());

System.out.println("Job [" + i + "] - ret_text = " +

cj_jobData.getRet_text());

}

}

Parent Topic

Handling Response objects examples