Debian Codegraph @

test/wsdl/document/DocumentTestSoapBindingImpl.java

raw
1 /**
2 * DocumentTestSoapBindingImpl.java
3 *
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
6 */
7
8 package test.wsdl.document;
9
10 import org.apache.axis.AxisFault;
11 import org.apache.axis.utils.XMLUtils;
12
13 import java.io.ByteArrayInputStream;
14
15 public class DocumentTestSoapBindingImpl implements test.wsdl.document.TestService{
16 String xml = "<hello>world</hello>";
17
18 public org.w3c.dom.Element getElement() throws java.rmi.RemoteException {
19 try {
20 return XMLUtils.newDocument(new ByteArrayInputStream(xml.getBytes())).getDocumentElement();
21 } catch (Exception e) {
22 throw AxisFault.makeFault(e);
23 }
24 }
25
26 public org.w3c.dom.Document getDocument() throws java.rmi.RemoteException {
27 try {
28 return XMLUtils.newDocument(new ByteArrayInputStream(xml.getBytes()));
29 } catch (Exception e) {
30 throw AxisFault.makeFault(e);
31 }
32 }
33
34 }