org.apache.axis.wsi.scm.retailer.RetailerSoapBindingStub binding;
try {
binding = (org.apache.axis.wsi.scm.retailer.RetailerSoapBindingStub)
new org.apache.axis.wsi.scm.retailer.RetailerServiceLocator().getRetailerPort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
try {
org.apache.axis.wsi.scm.retailer.order.PartsOrderResponseType value = null;
value = binding.submitOrder(new org.apache.axis.wsi.scm.retailer.order.PartsOrderType(), new org.apache.axis.wsi.scm.retailer.order.CustomerDetailsType(), new org.apache.axis.wsi.scm.configuration.ConfigurationType());
}
catch (org.apache.axis.wsi.scm.retailer.order.InvalidProductCodeType e1) {
throw new junit.framework.AssertionFailedError("InvalidProductCode Exception caught: " + e1);
}
catch (org.apache.axis.wsi.scm.retailer.BadOrderFault e2) {
throw new junit.framework.AssertionFailedError("BadOrder Exception caught: " + e2);
}
catch (org.apache.axis.wsi.scm.configuration.ConfigurationFaultType e3) {
throw new junit.framework.AssertionFailedError("ConfigurationFault Exception caught: " + e3);
}
// TBD - validate results