documenttestsoapbindingimpl.java

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

JAVA
35
字号
/** * DocumentTestSoapBindingImpl.java * * This file was auto-generated from WSDL * by the Apache Axis WSDL2Java emitter. */package test.wsdl.document;import org.apache.axis.AxisFault;import org.apache.axis.utils.XMLUtils;import java.io.ByteArrayInputStream;public class DocumentTestSoapBindingImpl implements test.wsdl.document.TestService{    String xml = "<hello>world</hello>";    public org.w3c.dom.Element getElement() throws java.rmi.RemoteException {        try {            return XMLUtils.newDocument(new ByteArrayInputStream(xml.getBytes())).getDocumentElement();        } catch (Exception e) {            throw AxisFault.makeFault(e);        }    }    public org.w3c.dom.Document getDocument() throws java.rmi.RemoteException {        try {            return XMLUtils.newDocument(new ByteArrayInputStream(xml.getBytes()));        } catch (Exception e) {            throw AxisFault.makeFault(e);        }    }}

⌨️ 快捷键说明

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