KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > samples > echo > InteropTestSoapBindingImpl


1 /**
2  * InteropTestSoapBindingImpl.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis Wsdl2java emitter.
6  *
7  * And then it was hand modified to echo
8  * the arguments back to the caller.
9  */

10
11 package samples.echo;
12
13 import org.apache.axis.MessageContext;
14
15 public class InteropTestSoapBindingImpl implements samples.echo.InteropTestPortType {
16     public java.lang.String JavaDoc echoString(java.lang.String JavaDoc inputString) throws java.rmi.RemoteException JavaDoc {
17         MessageContext.getCurrentContext().setProperty(echoHeaderStringHandler.ECHOHEADER_STRING_ID, "header text");
18         return inputString;
19     }
20
21     public java.lang.String JavaDoc[] echoStringArray(java.lang.String JavaDoc[] inputStringArray) throws java.rmi.RemoteException JavaDoc {
22         return inputStringArray;
23     }
24
25     public int echoInteger(int inputInteger) throws java.rmi.RemoteException JavaDoc {
26         return inputInteger;
27     }
28
29     public int[] echoIntegerArray(int[] inputIntegerArray) throws java.rmi.RemoteException JavaDoc {
30         return inputIntegerArray;
31     }
32
33     public float echoFloat(float inputFloat) throws java.rmi.RemoteException JavaDoc {
34         return inputFloat;
35     }
36
37     public float[] echoFloatArray(float[] inputFloatArray) throws java.rmi.RemoteException JavaDoc {
38         return inputFloatArray;
39     }
40
41     public samples.echo.SOAPStruct echoStruct(samples.echo.SOAPStruct inputStruct) throws java.rmi.RemoteException JavaDoc {
42         return inputStruct;
43     }
44
45     public samples.echo.SOAPStruct[] echoStructArray(samples.echo.SOAPStruct[] inputStructArray) throws java.rmi.RemoteException JavaDoc {
46         return inputStructArray;
47     }
48
49     public void echoVoid() throws java.rmi.RemoteException JavaDoc {
50     }
51
52     public byte[] echoBase64(byte[] inputBase64) throws java.rmi.RemoteException JavaDoc {
53         return inputBase64;
54     }
55
56     public java.util.Calendar JavaDoc echoDate(java.util.Calendar JavaDoc inputDate) throws java.rmi.RemoteException JavaDoc {
57         return inputDate;
58     }
59
60     public byte[] echoHexBinary(byte[] inputHexBinary) throws java.rmi.RemoteException JavaDoc {
61         return inputHexBinary;
62     }
63
64     public java.math.BigDecimal JavaDoc echoDecimal(java.math.BigDecimal JavaDoc inputDecimal) throws java.rmi.RemoteException JavaDoc {
65         return inputDecimal;
66     }
67
68     public boolean echoBoolean(boolean inputBoolean) throws java.rmi.RemoteException JavaDoc {
69         return inputBoolean;
70     }
71
72     public void echoStructAsSimpleTypes(samples.echo.SOAPStruct inputStruct, 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 {
73         outputString.value = inputStruct.getVarString() ;
74         outputInteger.value = inputStruct.getVarInt() ;
75         outputFloat.value = inputStruct.getVarFloat() ;
76     }
77
78     public samples.echo.SOAPStruct echoSimpleTypesAsStruct(java.lang.String JavaDoc inputString, int inputInteger, float inputFloat) throws java.rmi.RemoteException JavaDoc {
79         samples.echo.SOAPStruct s = new samples.echo.SOAPStruct();
80         s.setVarInt(inputInteger);
81         s.setVarString(inputString);
82         s.setVarFloat(inputFloat);
83         return s;
84     }
85
86     public java.lang.String JavaDoc[][] echo2DStringArray(java.lang.String JavaDoc[][] input2DStringArray) throws java.rmi.RemoteException JavaDoc {
87         return input2DStringArray;
88     }
89
90     public samples.echo.SOAPStructStruct echoNestedStruct(samples.echo.SOAPStructStruct inputStruct) throws java.rmi.RemoteException JavaDoc {
91         return inputStruct;
92     }
93
94     public samples.echo.SOAPArrayStruct echoNestedArray(samples.echo.SOAPArrayStruct inputStruct) throws java.rmi.RemoteException JavaDoc {
95         return inputStruct;
96     }
97
98     /**
99      * This method accepts a Map and echoes it back to the client.
100      */

101     public java.util.HashMap JavaDoc echoMap(java.util.HashMap JavaDoc input) {
102         return input;
103     }
104
105     /**
106      * This method accepts an array of Maps and echoes it back to the client.
107      */

108     public java.util.HashMap JavaDoc [] echoMapArray(java.util.HashMap JavaDoc[] input) {
109         return input;
110     }
111
112     /**
113      * This method accepts a Token (xsd:token) and echoes it back to the client.
114      */

115     public org.apache.axis.types.Token echoToken(org.apache.axis.types.Token input) throws java.rmi.RemoteException JavaDoc {
116         return input;
117     }
118
119     /**
120      * This method accepts a NormalizedString (xsd:normalizedString) and echoes
121      * it back to the client.
122      */

123     public org.apache.axis.types.NormalizedString echoNormalizedString(org.apache.axis.types.NormalizedString input) throws java.rmi.RemoteException JavaDoc {
124         return input;
125     }
126
127         /**
128          * This method accepts a UnsignedLong (xsd:unsignedLong) and echoes
129          * it back to the client.
130          */

131     public org.apache.axis.types.UnsignedLong echoUnsignedLong(org.apache.axis.types.UnsignedLong input) throws java.rmi.RemoteException JavaDoc {
132             return input;
133         }
134
135         /**
136          * This method accepts a UnsignedInt (xsd:unsignedInt) and echoes
137          * it back to the client.
138          */

139     public org.apache.axis.types.UnsignedInt echoUnsignedInt(org.apache.axis.types.UnsignedInt input) throws java.rmi.RemoteException JavaDoc {
140             return input;
141         }
142
143         /**
144          * This method accepts a UnsignedShort (xsd:unsignedShort) and echoes
145          * it back to the client.
146          */

147     public org.apache.axis.types.UnsignedShort echoUnsignedShort(org.apache.axis.types.UnsignedShort input) throws java.rmi.RemoteException JavaDoc {
148             return input;
149         }
150
151         /**
152          * This method accepts a UnsignedByte (xsd:unsignedByte) and echoes
153          * it back to the client.
154          */

155     public org.apache.axis.types.UnsignedByte echoUnsignedByte(org.apache.axis.types.UnsignedByte input) throws java.rmi.RemoteException JavaDoc {
156             return input;
157         }
158
159     /**
160      * This method accepts a NonNegativeInteger (xsd:nonNegativeInteger) and echoes
161      * it back to the client.
162      */

163     public org.apache.axis.types.NonNegativeInteger echoNonNegativeInteger(org.apache.axis.types.NonNegativeInteger input) throws java.rmi.RemoteException JavaDoc {
164             return input;
165         }
166         
167     /**
168      * This method accepts a PositiveInteger (xsd:positiveInteger) and echoes
169      * it back to the client.
170      */

171     public org.apache.axis.types.PositiveInteger echoPositiveInteger(org.apache.axis.types.PositiveInteger input) throws java.rmi.RemoteException JavaDoc {
172             return input;
173         }
174
175     /**
176      * This method accepts a NonPositiveInteger (xsd:nonPositiveInteger) and echoes
177      * it back to the client.
178      */

179     public org.apache.axis.types.NonPositiveInteger echoNonPositiveInteger(org.apache.axis.types.NonPositiveInteger input) throws java.rmi.RemoteException JavaDoc {
180             return input;
181         }
182
183     /**
184      * This method accepts a NegativeInteger (xsd:negativeInteger) and echoes
185      * it back to the client.
186      */

187     public org.apache.axis.types.NegativeInteger echoNegativeInteger(org.apache.axis.types.NegativeInteger input) throws java.rmi.RemoteException JavaDoc {
188             return input;
189         }
190
191
192 }
193
Popular Tags