001: /**
002: * InteropTestSoapBindingImpl.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis Wsdl2java emitter.
006: *
007: * And then it was hand modified to echo
008: * the arguments back to the caller.
009: */package samples.echo;
010:
011: import org.apache.axis.MessageContext;
012:
013: public class InteropTestSoapBindingImpl implements
014: samples.echo.InteropTestPortType {
015: public java.lang.String echoString(java.lang.String inputString)
016: throws java.rmi.RemoteException {
017: MessageContext.getCurrentContext().setProperty(
018: echoHeaderStringHandler.ECHOHEADER_STRING_ID,
019: "header text");
020: return inputString;
021: }
022:
023: public java.lang.String[] echoStringArray(
024: java.lang.String[] inputStringArray)
025: throws java.rmi.RemoteException {
026: return inputStringArray;
027: }
028:
029: public int echoInteger(int inputInteger)
030: throws java.rmi.RemoteException {
031: return inputInteger;
032: }
033:
034: public int[] echoIntegerArray(int[] inputIntegerArray)
035: throws java.rmi.RemoteException {
036: return inputIntegerArray;
037: }
038:
039: public float echoFloat(float inputFloat)
040: throws java.rmi.RemoteException {
041: return inputFloat;
042: }
043:
044: public float[] echoFloatArray(float[] inputFloatArray)
045: throws java.rmi.RemoteException {
046: return inputFloatArray;
047: }
048:
049: public samples.echo.SOAPStruct echoStruct(
050: samples.echo.SOAPStruct inputStruct)
051: throws java.rmi.RemoteException {
052: return inputStruct;
053: }
054:
055: public samples.echo.SOAPStruct[] echoStructArray(
056: samples.echo.SOAPStruct[] inputStructArray)
057: throws java.rmi.RemoteException {
058: return inputStructArray;
059: }
060:
061: public void echoVoid() throws java.rmi.RemoteException {
062: }
063:
064: public byte[] echoBase64(byte[] inputBase64)
065: throws java.rmi.RemoteException {
066: return inputBase64;
067: }
068:
069: public java.util.Calendar echoDate(java.util.Calendar inputDate)
070: throws java.rmi.RemoteException {
071: return inputDate;
072: }
073:
074: public byte[] echoHexBinary(byte[] inputHexBinary)
075: throws java.rmi.RemoteException {
076: return inputHexBinary;
077: }
078:
079: public java.math.BigDecimal echoDecimal(
080: java.math.BigDecimal inputDecimal)
081: throws java.rmi.RemoteException {
082: return inputDecimal;
083: }
084:
085: public boolean echoBoolean(boolean inputBoolean)
086: throws java.rmi.RemoteException {
087: return inputBoolean;
088: }
089:
090: public void echoStructAsSimpleTypes(
091: samples.echo.SOAPStruct inputStruct,
092: javax.xml.rpc.holders.StringHolder outputString,
093: javax.xml.rpc.holders.IntHolder outputInteger,
094: javax.xml.rpc.holders.FloatHolder outputFloat)
095: throws java.rmi.RemoteException {
096: outputString.value = inputStruct.getVarString();
097: outputInteger.value = inputStruct.getVarInt();
098: outputFloat.value = inputStruct.getVarFloat();
099: }
100:
101: public samples.echo.SOAPStruct echoSimpleTypesAsStruct(
102: java.lang.String inputString, int inputInteger,
103: float inputFloat) throws java.rmi.RemoteException {
104: samples.echo.SOAPStruct s = new samples.echo.SOAPStruct();
105: s.setVarInt(inputInteger);
106: s.setVarString(inputString);
107: s.setVarFloat(inputFloat);
108: return s;
109: }
110:
111: public java.lang.String[][] echo2DStringArray(
112: java.lang.String[][] input2DStringArray)
113: throws java.rmi.RemoteException {
114: return input2DStringArray;
115: }
116:
117: public samples.echo.SOAPStructStruct echoNestedStruct(
118: samples.echo.SOAPStructStruct inputStruct)
119: throws java.rmi.RemoteException {
120: return inputStruct;
121: }
122:
123: public samples.echo.SOAPArrayStruct echoNestedArray(
124: samples.echo.SOAPArrayStruct inputStruct)
125: throws java.rmi.RemoteException {
126: return inputStruct;
127: }
128:
129: /**
130: * This method accepts a Map and echoes it back to the client.
131: */
132: public java.util.HashMap echoMap(java.util.HashMap input) {
133: return input;
134: }
135:
136: /**
137: * This method accepts an array of Maps and echoes it back to the client.
138: */
139: public java.util.HashMap[] echoMapArray(java.util.HashMap[] input) {
140: return input;
141: }
142:
143: /**
144: * This method accepts a Token (xsd:token) and echoes it back to the client.
145: */
146: public org.apache.axis.types.Token echoToken(
147: org.apache.axis.types.Token input)
148: throws java.rmi.RemoteException {
149: return input;
150: }
151:
152: /**
153: * This method accepts a NormalizedString (xsd:normalizedString) and echoes
154: * it back to the client.
155: */
156: public org.apache.axis.types.NormalizedString echoNormalizedString(
157: org.apache.axis.types.NormalizedString input)
158: throws java.rmi.RemoteException {
159: return input;
160: }
161:
162: /**
163: * This method accepts a UnsignedLong (xsd:unsignedLong) and echoes
164: * it back to the client.
165: */
166: public org.apache.axis.types.UnsignedLong echoUnsignedLong(
167: org.apache.axis.types.UnsignedLong input)
168: throws java.rmi.RemoteException {
169: return input;
170: }
171:
172: /**
173: * This method accepts a UnsignedInt (xsd:unsignedInt) and echoes
174: * it back to the client.
175: */
176: public org.apache.axis.types.UnsignedInt echoUnsignedInt(
177: org.apache.axis.types.UnsignedInt input)
178: throws java.rmi.RemoteException {
179: return input;
180: }
181:
182: /**
183: * This method accepts a UnsignedShort (xsd:unsignedShort) and echoes
184: * it back to the client.
185: */
186: public org.apache.axis.types.UnsignedShort echoUnsignedShort(
187: org.apache.axis.types.UnsignedShort input)
188: throws java.rmi.RemoteException {
189: return input;
190: }
191:
192: /**
193: * This method accepts a UnsignedByte (xsd:unsignedByte) and echoes
194: * it back to the client.
195: */
196: public org.apache.axis.types.UnsignedByte echoUnsignedByte(
197: org.apache.axis.types.UnsignedByte input)
198: throws java.rmi.RemoteException {
199: return input;
200: }
201:
202: /**
203: * This method accepts a NonNegativeInteger (xsd:nonNegativeInteger) and echoes
204: * it back to the client.
205: */
206: public org.apache.axis.types.NonNegativeInteger echoNonNegativeInteger(
207: org.apache.axis.types.NonNegativeInteger input)
208: throws java.rmi.RemoteException {
209: return input;
210: }
211:
212: /**
213: * This method accepts a PositiveInteger (xsd:positiveInteger) and echoes
214: * it back to the client.
215: */
216: public org.apache.axis.types.PositiveInteger echoPositiveInteger(
217: org.apache.axis.types.PositiveInteger input)
218: throws java.rmi.RemoteException {
219: return input;
220: }
221:
222: /**
223: * This method accepts a NonPositiveInteger (xsd:nonPositiveInteger) and echoes
224: * it back to the client.
225: */
226: public org.apache.axis.types.NonPositiveInteger echoNonPositiveInteger(
227: org.apache.axis.types.NonPositiveInteger input)
228: throws java.rmi.RemoteException {
229: return input;
230: }
231:
232: /**
233: * This method accepts a NegativeInteger (xsd:negativeInteger) and echoes
234: * it back to the client.
235: */
236: public org.apache.axis.types.NegativeInteger echoNegativeInteger(
237: org.apache.axis.types.NegativeInteger input)
238: throws java.rmi.RemoteException {
239: return input;
240: }
241:
242: }
|