test.wsdl.wrapperHolder.ExampleSoapStub binding;
try {
binding = (test.wsdl.wrapperHolder.ExampleSoapStub)
new test.wsdl.wrapperHolder.DoExample_ServiceLocator().getWrapperHolder();
}
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);
byte[][] in1 = new byte[][] {
{ (byte) 0xbe, (byte) 0xef, (byte) 0xcc },
{ (byte) 0xee, (byte) 0xff, (byte) 0xaa },
};
Long in2 = new Long(3);
ByteArrayHolder out1 = new ByteArrayHolder();
LongWrapperHolder out2 = new LongWrapperHolder();
// Test operation
binding.doExample(in1, in2, out1, out2);
assertEquals("Unexpected value for ByteArrayHolder",
byteArrayAsList(in1[0]), byteArrayAsList(out1.value));
assertEquals("Unexpected value for LongWrapperHolder ",
in2, out2.value);