anyserviceservicetestcase.java

来自「Java有关XML编程需要用到axis 的源代码 把里面bin下的包导入相应」· Java 代码 · 共 33 行

JAVA
33
字号
/** * AnyServiceServiceTestCase.java * * This file was auto-generated from WSDL * by the Apache Axis WSDL2Java emitter. */package test.wsdl.anytype;public class AnyServiceServiceTestCase extends junit.framework.TestCase {    public AnyServiceServiceTestCase(java.lang.String name) {        super(name);    }    public void test1AnyServiceRun() throws Exception {        test.wsdl.anytype.AnyService binding;        try {            binding = new test.wsdl.anytype.AnyServiceServiceLocator().getAnyService();        }        catch (javax.xml.rpc.ServiceException jre) {            if(jre.getLinkedCause()!=null)                jre.getLinkedCause().printStackTrace();            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);        }        assertTrue("binding is null", binding != null);        // Test operation        java.lang.Object value = null;        value = binding.run();        System.out.println("Got:" + value);    }}

⌨️ 快捷键说明

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