Example 67 : Find consignment audit records

Printer-friendly version

 This example shows how to find consignment audit records

package com.metapack.dm.test;
 
import com.metapack.deliverymanager.client.AuditRecord;
import com.metapack.deliverymanager.client.webservices.ConsignmentService;
 
public class Example67 extends ExampleBase {
 
	public void run() throws Exception {
 
		ConsignmentService service = createConsignmentService();
 
		AuditRecord[] auditRecords = service.findConsignmentAuditRecords( "DMC01V00VF8J" );
		for( AuditRecord record : auditRecords ) {
			System.out.println( record.getText() );
		}
	}
 
	public static void main(String[] args ){
		Example67 ex = new Example67();
		try {
			ex.run();
		} catch( Exception e ) {
			e.printStackTrace();
		}
	}
}