public void test4Soap12TestRpcPortEchoStructAsSimpleTypes() throws Exception { test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding; try { binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub) new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort(); } 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.wsdl.soap12.assertion.xsd.SOAPStruct input = new test.wsdl.soap12.assertion.xsd.SOAPStruct(); input.setVarFloat(-5); input.setVarInt(10); input.setVarString("EchoStructAsSimpleTypes"); javax.xml.rpc.holders.StringHolder out1 = new javax.xml.rpc.holders.StringHolder(); javax.xml.rpc.holders.IntHolder out2 = new javax.xml.rpc.holders.IntHolder(); javax.xml.rpc.holders.FloatHolder out3 = new javax.xml.rpc.holders.FloatHolder(); // Test operation binding.echoStructAsSimpleTypes(input, out1, out2, out3); // TBD - validate results assertEquals(out1.value, input.getVarString()); assertEquals(out2.value, input.getVarInt()); assertTrue(out3.value == input.getVarFloat()); }
public void test2Soap12TestRpcPortEchoStruct() throws Exception { test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding; try { binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub) new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort(); } 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.wsdl.soap12.assertion.xsd.SOAPStruct input = new test.wsdl.soap12.assertion.xsd.SOAPStruct(); input.setVarFloat(-5); input.setVarInt(10); input.setVarString("EchoStruct"); // Test operation test.wsdl.soap12.assertion.xsd.SOAPStruct output = null; output = binding.echoStruct(input); // TBD - validate results assertEquals(input, output); }
public void test1Soap12TestRpcPortReturnVoid() throws Exception { test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding; try { binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub) new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort(); } 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 binding.returnVoid(); // TBD - validate results }
public void test18Soap12TestRpcPortIsNil() throws Exception { test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding; try { binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub) new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort(); } 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); // TODO: This does not work :( //// Test operation // boolean value = binding.isNil(new java.lang.String("isNil")); // //// TBD - validate results // assertEquals(false, value); }
public void test17Soap12TestRpcPortCountItems() throws Exception { test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding; try { binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub) new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort(); } 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 int output = -3; output = binding.countItems(new java.lang.String[] {"Life", "is", "a", "box", "of", "chocolates"}); // TBD - validate results assertEquals(output, 6); }
public void test10Soap12TestRpcPortEchoIntegerArray() throws Exception { test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding; try { binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub) new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort(); } 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); int[] input = new int[] {1, 2, 3}; // Test operation int[] output = null; output = binding.echoIntegerArray(input); // TBD - validate results assertTrue(Arrays.equals(input, output)); }
public void test13Soap12TestRpcPortEchoDate() throws Exception { test.wsdl.soap12.assertion.Soap12TestRpcBindingStub binding; try { binding = (test.wsdl.soap12.assertion.Soap12TestRpcBindingStub) new test.wsdl.soap12.assertion.WhiteMesaSoap12TestSvcLocator().getSoap12TestRpcPort(); } 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); java.util.Calendar input = java.util.Calendar.getInstance(); input.setTimeZone(TimeZone.getTimeZone("GMT")); input.set(Calendar.MILLISECOND, 0); java.util.Calendar output = null; output = binding.echoDate(input); output.setTimeZone(TimeZone.getTimeZone("GMT")); assertEquals(input, output); }