test.wsdl.header.BindingStub binding;
try {
binding = (test.wsdl.header.BindingStub)
new test.wsdl.header.HeaderServiceLocator().getheader();
}
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 {
float value = -3;
value = binding.op1(0, new java.lang.String(), new test.wsdl.header.HeaderType());
}
catch (test.wsdl.header.Op1Fault e1) {
throw new junit.framework.AssertionFailedError("op1Fault Exception caught: " + e1);
}
// TBD - validate results