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

📄 roundtrip2testservicetestcase.java

📁 Java有关XML编程需要用到axis 的源代码 把里面bin下的包导入相应的Java工程 进行使用
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
            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.intMultiArrayTest(new int[0][0]);        // TBD - validate results    }    public void test33RoundTrip2TestLongMultiArrayTest() 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.longMultiArrayTest(new long[0][0]);        // TBD - validate results    }    public void test34RoundTrip2TestFloatMultiArrayTest() 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.floatMultiArrayTest(new float[0][0]);        // TBD - validate results    }    public void test35RoundTrip2TestDoubleMultiArrayTest() 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.doubleMultiArrayTest(new double[0][0]);        // TBD - validate results    }    public void test36RoundTrip2TestStringTest() 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.String value = null;        value = binding.stringTest(new java.lang.String());        // TBD - validate results    }    public void test37RoundTrip2TestStringArrayTest() 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.String[] value = null;        value = binding.stringArrayTest(new java.lang.String[0]);        // TBD - validate results    }    public void test38RoundTrip2TestStringMultiArrayTest() 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.String[][] value = null;        value = binding.stringMultiArrayTest(new java.lang.String[0][0]);        // TBD - validate results    }    public void test39RoundTrip2TestCalendarTest() 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.util.Calendar value = null;        value = binding.calendarTest(java.util.Calendar.getInstance());        // TBD - validate results    }    public void test40RoundTrip2TestCalendarArrayTest() 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.util.Calendar[] value = null;        value = binding.calendarArrayTest(new java.util.Calendar[0]);        // TBD - validate results    }    public void test41RoundTrip2TestCalendarMultiArrayTest() 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.util.Calendar[][] value = null;        value = binding.calendarMultiArrayTest(new java.util.Calendar[0][0]);        // TBD - validate results    }    public void test42RoundTrip2TestBigIntegerTest() 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.math.BigInteger value = null;        value = binding.bigIntegerTest(new java.math.BigInteger("0"));        // TBD - validate results    }    public void test43RoundTrip2TestBigIntegerArrayTest() 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.math.BigInteger[] value = null;        value = binding.bigIntegerArrayTest(new java.math.BigInteger[0]);        // TBD - validate results    }    public void test44RoundTrip2TestBigIntegerMultiArrayTest() 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.math.BigInteger[][] value = null;        value = binding.bigIntegerMultiArrayTest(new java.math.BigInteger[0][0]);        // TBD - validate results    }    public void test45RoundTrip2TestBigDecimalTest() 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.math.BigDecimal value = null;        value = binding.bigDecimalTest(new java.math.BigDecimal(0));        // TBD - validate results    }    public void test46RoundTrip2TestBigDecimalArrayTest() 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.math.BigDecimal[] value = null;        value = binding.bigDecimalArrayTest(new java.math.BigDecimal[0]);        // TBD - validate results    }    public void test47RoundTrip2TestBigDecimalMultiArrayTest() 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.math.BigDecimal[][] value = null;        value = binding.bigDecimalMultiArrayTest(new java.math.BigDecimal[0][0]);        // TBD - validate results    }}

⌨️ 快捷键说明

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