⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 roundtrip2testservicetestcase.java

📁 Java有关XML编程需要用到axis 的源代码 把里面bin下的包导入相应的Java工程 进行使用
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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        byte[] value = null;        value = binding.byteArrayTest(new byte[]{0xD,0xE});        // TBD - validate results    }    public void test17RoundTrip2TestShortArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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        short[] value = null;        value = binding.shortArrayTest(new short[]{3,4});        // TBD - validate results    }    public void test18RoundTrip2TestIntArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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[] value = null;        value = binding.intArrayTest(new int[]{1,2});        // TBD - validate results    }    public void test19RoundTrip2TestLongArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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        long[] value = null;        value = binding.longArrayTest(new long[]{45,64});        // TBD - validate results    }    public void test20RoundTrip2TestFloatArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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        float[] value = null;        value = binding.floatArrayTest(new float[]{12,34});        // TBD - validate results    }    public void test21RoundTrip2TestDoubleArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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        double[] value = null;        value = binding.doubleArrayTest(new double[]{435,647});        // TBD - validate results    }    public void test22RoundTrip2TestWrapperBooleanArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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.Boolean[] value = null;        value = binding.wrapperBooleanArrayTest(new java.lang.Boolean[]{Boolean.TRUE, Boolean.FALSE});        // TBD - validate results    }    public void test23RoundTrip2TestWrapperByteArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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.Byte[] value = null;        value = binding.wrapperByteArrayTest(new java.lang.Byte[]{new Byte((byte)0x3)});        // TBD - validate results    }    public void test24RoundTrip2TestWrapperShortArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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.Short[] value = null;        value = binding.wrapperShortArrayTest(new java.lang.Short[]{new Short((short)3)});        // TBD - validate results    }    public void test25RoundTrip2TestWrapperIntArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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;        value = binding.wrapperIntArrayTest(new java.lang.Integer[]{new Integer(4)});        // TBD - validate results    }    public void test26RoundTrip2TestWrapperLongArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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.Long[] value = null;        value = binding.wrapperLongArrayTest(new java.lang.Long[0]);        // TBD - validate results    }    public void test27RoundTrip2TestWrapperFloatArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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.Float[] value = null;        value = binding.wrapperFloatArrayTest(new java.lang.Float[0]);        // TBD - validate results    }    public void test28RoundTrip2TestWrapperDoubleArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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.Double[] value = null;        value = binding.wrapperDoubleArrayTest(new java.lang.Double[0]);        // TBD - validate results    }    public void test29RoundTrip2TestBooleanMultiArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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        boolean[][] value = null;        value = binding.booleanMultiArrayTest(new boolean[0][0]);        // TBD - validate results    }    public void test30RoundTrip2TestByteMultiArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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        byte[][] value = null;        value = binding.byteMultiArrayTest(new byte[0][0]);        // TBD - validate results    }    public void test31RoundTrip2TestShortMultiArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {            binding = (test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub)                          new test.wsdl.roundtrip2.RoundTrip2TestServiceLocator().getRoundTrip2Test();        }        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        short[][] value = null;        value = binding.shortMultiArrayTest(new short[0][0]);        // TBD - validate results    }    public void test32RoundTrip2TestIntMultiArrayTest() throws Exception {        test.wsdl.roundtrip2.RoundTrip2TestSoapBindingStub binding;        try {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -