File: DocumentTestSoapBindingImpl.java

package info (click to toggle)
axis 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,100 kB
  • sloc: java: 129,124; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (34 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
 * 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);
        }
    }

}