test.wsdl.primitiveWrappers.TypeWrapper_BindingStub binding;
try {
binding = (test.wsdl.primitiveWrappers.TypeWrapper_BindingStub)
new test.wsdl.primitiveWrappers.TypeWrapper_ServiceLocator().getTypeWrapper();
}
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
java.lang.Integer value = null;
Bean bean = new test.wsdl.primitiveWrappers.Bean();
bean.setPrimitive(5);
bean.setWrapped(null); // Since this is null it won't appear on the
// wire. We should check that at some point!
value = binding.testWrapping(new java.lang.Integer(5), bean);
assertEquals("Wrong result from service", value, new Integer(5));