KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > interop4 > groupi > Round4XSDTestSoapImpl


1 /**
2  * Round4XSDTestSoapImpl.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */

7
8 package test.wsdl.interop4.groupi;
9
10 import org.apache.axis.Message;
11 import org.apache.axis.MessageContext;
12 import org.apache.axis.message.SOAPHeaderElement;
13
14 import java.util.Vector JavaDoc;
15
16 public class Round4XSDTestSoapImpl implements test.wsdl.interop4.groupi.Round4XSDTestSoap{
17     public void echoVoid() throws java.rmi.RemoteException JavaDoc {
18         return;
19     }
20
21     public int echoInteger(int inputInteger) throws java.rmi.RemoteException JavaDoc {
22         return inputInteger;
23     }
24
25     public float echoFloat(float inputFloat) throws java.rmi.RemoteException JavaDoc {
26         return inputFloat;
27     }
28
29     public java.lang.String JavaDoc echoString(java.lang.String JavaDoc inputString) throws java.rmi.RemoteException JavaDoc {
30         return inputString;
31     }
32
33     public byte[] echoBase64(byte[] inputBase64) throws java.rmi.RemoteException JavaDoc {
34         return inputBase64;
35     }
36
37     public java.util.Calendar JavaDoc echoDate(java.util.Calendar JavaDoc inputDate) throws java.rmi.RemoteException JavaDoc {
38         return inputDate;
39     }
40
41     public test.wsdl.interop4.groupi.xsd.SOAPComplexType echoComplexType(test.wsdl.interop4.groupi.xsd.SOAPComplexType inputComplexType) throws java.rmi.RemoteException JavaDoc {
42         return inputComplexType;
43     }
44
45     public int[] echoIntegerMultiOccurs(test.wsdl.interop4.groupi.ArrayOfInt inputIntegerMultiOccurs) throws java.rmi.RemoteException JavaDoc {
46         return inputIntegerMultiOccurs.get_int();
47     }
48
49     public float[] echoFloatMultiOccurs(test.wsdl.interop4.groupi.ArrayOfFloat inputFloatMultiOccurs) throws java.rmi.RemoteException JavaDoc {
50         return inputFloatMultiOccurs.get_float();
51     }
52
53     public java.lang.String JavaDoc[] echoStringMultiOccurs(test.wsdl.interop4.groupi.ArrayOfString inputStringMultiOccurs) throws java.rmi.RemoteException JavaDoc {
54         return inputStringMultiOccurs.getString();
55     }
56
57     public test.wsdl.interop4.groupi.xsd.SOAPComplexType[] echoComplexTypeMultiOccurs(test.wsdl.interop4.groupi.xsd.ArrayOfSOAPComplexType inputComplexTypeMultiOccurs) throws java.rmi.RemoteException JavaDoc {
58         return inputComplexTypeMultiOccurs.getSOAPComplexType();
59     }
60
61     public java.math.BigDecimal JavaDoc echoDecimal(java.math.BigDecimal JavaDoc inputDecimal) throws java.rmi.RemoteException JavaDoc {
62         return inputDecimal;
63     }
64
65     public boolean echoBoolean(boolean inputBoolean) throws java.rmi.RemoteException JavaDoc {
66         return inputBoolean;
67     }
68
69     public byte[] echoHexBinary(byte[] inputHexBinary) throws java.rmi.RemoteException JavaDoc {
70         return inputHexBinary;
71     }
72
73     public void echoComplexTypeAsSimpleTypes(test.wsdl.interop4.groupi.xsd.SOAPComplexType inputComplexType, javax.xml.rpc.holders.StringHolder JavaDoc outputString, javax.xml.rpc.holders.IntHolder JavaDoc outputInteger, javax.xml.rpc.holders.FloatHolder JavaDoc outputFloat) throws java.rmi.RemoteException JavaDoc {
74         outputString.value = new java.lang.String JavaDoc(inputComplexType.getVarString());
75         outputInteger.value = inputComplexType.getVarInt();
76         outputFloat.value = inputComplexType.getVarFloat();
77     }
78
79     public test.wsdl.interop4.groupi.xsd.SOAPComplexType echoSimpleTypesAsComplexType(java.lang.String JavaDoc inputString, int inputInteger, float inputFloat) throws java.rmi.RemoteException JavaDoc {
80         test.wsdl.interop4.groupi.xsd.SOAPComplexType output = new test.wsdl.interop4.groupi.xsd.SOAPComplexType();
81         output.setVarFloat(inputFloat);
82         output.setVarInt(inputInteger);
83         output.setVarString(inputString);
84         return output;
85     }
86
87     public test.wsdl.interop4.groupi.xsd.SOAPComplexTypeComplexType echoNestedComplexType(test.wsdl.interop4.groupi.xsd.SOAPComplexTypeComplexType inputComplexType) throws java.rmi.RemoteException JavaDoc {
88         return inputComplexType;
89     }
90
91     public test.wsdl.interop4.groupi.xsd.SOAPMultiOccursComplexType echoNestedMultiOccurs(test.wsdl.interop4.groupi.xsd.SOAPMultiOccursComplexType inputComplexType) throws java.rmi.RemoteException JavaDoc {
92         return inputComplexType;
93     }
94
95     public test.wsdl.interop4.groupi.xsd.ChoiceComplexType echoChoice(test.wsdl.interop4.groupi.xsd.ChoiceComplexType inputChoice) throws java.rmi.RemoteException JavaDoc {
96         return inputChoice;
97     }
98
99     public test.wsdl.interop4.groupi.xsd.Enum echoEnum(test.wsdl.interop4.groupi.xsd.Enum inputEnum) throws java.rmi.RemoteException JavaDoc {
100         return inputEnum;
101     }
102
103     public java.lang.Object JavaDoc echoAnyType(java.lang.Object JavaDoc inputAnyType) throws java.rmi.RemoteException JavaDoc {
104         return inputAnyType;
105     }
106
107     public test.wsdl.interop4.groupi.EchoAnyElementResponseReturn echoAnyElement(test.wsdl.interop4.groupi.EchoAnyElementInputAny inputAny) throws java.rmi.RemoteException JavaDoc {
108         test.wsdl.interop4.groupi.EchoAnyElementResponseReturn output = new test.wsdl.interop4.groupi.EchoAnyElementResponseReturn();
109         output.set_any(inputAny.get_any());
110         return output;
111     }
112
113     public void echoVoidSoapHeader() throws java.rmi.RemoteException JavaDoc {
114         MessageContext context = MessageContext.getCurrentContext();
115         Message request = context.getRequestMessage();
116         Message response = context.getResponseMessage();
117         Vector JavaDoc headers = request.getSOAPEnvelope().getHeaders();
118         for (int i=0;i<headers.size();i++) {
119             SOAPHeaderElement header = (SOAPHeaderElement)headers.get(i);
120             response.getSOAPEnvelope().addHeader(header);
121         }
122     }
123 }
124
Popular Tags