HPOSSOD 1.0 Technical Note

HP Web Services for Output Server 55
Using HP Web Services for Output Server
Sample clients
"<object-name>qod</object-name>" +
//"<object-name>qod2</object-name>" +
//"<object-name>qod3</object-name>" +
"</operation-attributes>" +
//NOTE: Here Request-attributes not needed.
"</wsg-request>";
/* call HPOS Web Service Proxy and get Response*/
String resumeResponse=port.resumeObjects(resumeContract);
//print Request and Response
System.out.println("resumeObjectContract : "+resumeContract);
System.out.println("resumeObjectResponse : "+resumeResponse);
}
public void cancelJobs(){
//Cancel contract
String cancelContract="<wsg-request>" +
"<operation-attributes>" +
//Add one or more job-client-id's to cancel
"<job-client-id>dlm:8:39</job-client-id>" +
//"<job-client-id>dlm:8:40</job-client-id>" +
//"<job-client-id>dlm:8:41</job-client-id>" +
"</operation-attributes>" +
//NOTE: Here Request-attributes not needed.
"</wsg-request>";
/* call HPOS Web Service Proxy and get Response*/
String cancelResponse=port.cancelJobs(cancelContract);
//print Request and Response
System.out.println("cancelObjectContract : "+cancelContract);
System.out.println("cancelObjectResponse : "+cancelResponse);
}
public void cancelSubJobs(){
//Cancel contract
String cancelContract="<wsg-request>" +
"<operation-attributes>" +
//Add one or more job-identifier's to cancel
"<job-identifier>jqm:4478379</job-identifier>" +
//"<job-identifier>jqm:209673</job-identifier>" +
//"<job-identifier>jqm:209674</job-identifier>" +
"</operation-attributes>" +
//NOTE: Here Request-attributes not needed.
"</wsg-request>";
/* call HPOS Web Service Proxy and get Response*/
String cancelResponse=port.cancelSubJobs(cancelContract);