Example 64 : Debugging allocations using consignment code and booking code
This example shows how to see why a particular service was not selected using a consignment code and a booking code.
package com.metapack.dm.test; import com.metapack.deliverymanager.client.webservices.DebugService; public class Example64 extends ExampleBase { public void run() throws Exception { DebugService service = createDebugService(); String bookingCode = "!PLDPD,!DHLPRE1200/*/*-*/2011-03-01/*-23:59"; String[] messages = service.debugConsignmentWhyNotWithBookingCode( "DMC01V00VD31" , bookingCode ); for( String message : messages ) { System.out.println( message ); } } public static void main(String[] args ){ Example64 ex = new Example64(); try { ex.run(); } catch( Exception e ) { e.printStackTrace(); } } }

