KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > document > DocumentTestSoapBindingImpl


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 JavaDoc;
14
15 public class DocumentTestSoapBindingImpl implements test.wsdl.document.TestService{
16     String JavaDoc xml = "<hello>world</hello>";
17
18     public org.w3c.dom.Element JavaDoc getElement() throws java.rmi.RemoteException JavaDoc {
19         try {
20             return XMLUtils.newDocument(new ByteArrayInputStream JavaDoc(xml.getBytes())).getDocumentElement();
21         } catch (Exception JavaDoc e) {
22             throw AxisFault.makeFault(e);
23         }
24     }
25
26     public org.w3c.dom.Document JavaDoc getDocument() throws java.rmi.RemoteException JavaDoc {
27         try {
28             return XMLUtils.newDocument(new ByteArrayInputStream JavaDoc(xml.getBytes()));
29         } catch (Exception JavaDoc e) {
30             throw AxisFault.makeFault(e);
31         }
32     }
33
34 }
35
Popular Tags