001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */
019:
020: package org.apache.axis2.jaxws.sample.parallelasync.server;
021:
022: import java.util.concurrent.Future;
023:
024: import javax.jws.WebMethod;
025: import javax.jws.WebParam;
026: import javax.jws.WebResult;
027: import javax.jws.WebService;
028: import javax.xml.ws.AsyncHandler;
029: import javax.xml.ws.Holder;
030: import javax.xml.ws.RequestWrapper;
031: import javax.xml.ws.Response;
032: import javax.xml.ws.ResponseWrapper;
033:
034: import org.test.parallelasync.AnotherResponse;
035: import org.test.parallelasync.CustomAsyncResponse;
036: import org.test.parallelasync.InvokeAsyncResponse;
037: import org.test.parallelasync.IsAsleepResponse;
038: import org.test.parallelasync.PingResponse;
039: import org.test.parallelasync.SleepResponse;
040: import org.test.parallelasync.WakeUpResponse;
041:
042: /**
043: * This class was generated by the JAXWS SI.
044: * JAX-WS RI 2.0.1-jaxws-rearch-2005-nightly_2006-08-16_02-32-03-M1
045: * Generated source version: 2.0
046: *
047: */
048: @WebService(name="AsyncPort",targetNamespace="http://org/test/parallelasync")
049: public interface AsyncPort {
050:
051: /**
052: *
053: * @param request
054: * @return
055: * returns java.lang.String
056: */
057: @WebMethod(action="http://org/test/parallelasync/ping")
058: @WebResult(name="response",targetNamespace="")
059: @RequestWrapper(localName="ping",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.Ping")
060: @ResponseWrapper(localName="pingResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.PingResponse")
061: public String ping(
062: @WebParam(name="request",targetNamespace="")
063: String request);
064:
065: /**
066: *
067: * @param message
068: * @return
069: * returns javax.xml.ws.Response<org.test.parallelasync.SleepResponse>
070: */
071: @WebMethod(operationName="sleep",action="http://org/test/parallelasync/sleep")
072: @RequestWrapper(localName="sleep",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.Sleep")
073: @ResponseWrapper(localName="sleepResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.SleepResponse")
074: public Response<SleepResponse> sleepAsync(
075: @WebParam(name="message",targetNamespace="")
076: String message);
077:
078: /**
079: *
080: * @param message
081: * @param asyncHandler
082: * @return
083: * returns java.util.concurrent.Future<? extends java.lang.Object>
084: */
085: @WebMethod(operationName="sleep",action="http://org/test/parallelasync/sleep")
086: @RequestWrapper(localName="sleep",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.Sleep")
087: @ResponseWrapper(localName="sleepResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.SleepResponse")
088: public Future<?> sleepAsync(
089: @WebParam(name="message",targetNamespace="")
090: String message,
091: @WebParam(name="asyncHandler",targetNamespace="")
092: AsyncHandler<SleepResponse> asyncHandler);
093:
094: /**
095: *
096: * @param message
097: */
098: @WebMethod(action="http://org/test/parallelasync/sleep")
099: @RequestWrapper(localName="sleep",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.Sleep")
100: @ResponseWrapper(localName="sleepResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.SleepResponse")
101: public void sleep(
102: @WebParam(name="message",targetNamespace="",mode=WebParam.Mode.INOUT)
103: Holder<String> message);
104:
105: /**
106: *
107: * @return
108: * returns java.lang.String
109: */
110: @WebMethod(action="http://org/test/parallelasync/isAsleep")
111: @WebResult(name="response",targetNamespace="")
112: @RequestWrapper(localName="isAsleep",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.IsAsleep")
113: @ResponseWrapper(localName="isAsleepResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.IsAsleepResponse")
114: public String isAsleep(
115: @WebParam(name="request",targetNamespace="")
116: String request);
117:
118: /**
119: *
120: * @return
121: * returns java.lang.String
122: */
123: @WebMethod(action="http://org/test/parallelasync/wakeUp")
124: @WebResult(name="response",targetNamespace="")
125: @RequestWrapper(localName="wakeUp",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.WakeUp")
126: @ResponseWrapper(localName="wakeUpResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.WakeUpResponse")
127: public String wakeUp(
128: @WebParam(name="request",targetNamespace="")
129: String request);
130:
131: /**
132: *
133: * @param request
134: * @return
135: * returns javax.xml.ws.Response<org.test.parallelasync.InvokeAsyncResponse>
136: */
137: @WebMethod(operationName="invokeAsync",action="http://org/test/parallelasync/invokeAsync")
138: @RequestWrapper(localName="invokeAsync",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.InvokeAsync")
139: @ResponseWrapper(localName="invokeAsyncResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.InvokeAsyncResponse")
140: public Response<InvokeAsyncResponse> invokeAsyncAsync(
141: @WebParam(name="request",targetNamespace="")
142: String request);
143:
144: /**
145: *
146: * @param asyncHandler
147: * @param request
148: * @return
149: * returns java.util.concurrent.Future<? extends java.lang.Object>
150: */
151: @WebMethod(operationName="invokeAsync",action="http://org/test/parallelasync/invokeAsync")
152: @RequestWrapper(localName="invokeAsync",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.InvokeAsync")
153: @ResponseWrapper(localName="invokeAsyncResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.InvokeAsyncResponse")
154: public Future<?> invokeAsyncAsync(
155: @WebParam(name="request",targetNamespace="")
156: String request,
157: @WebParam(name="asyncHandler",targetNamespace="")
158: AsyncHandler<InvokeAsyncResponse> asyncHandler);
159:
160: /**
161: *
162: * @param request
163: * @return
164: * returns java.lang.String
165: */
166: @WebMethod(action="http://org/test/parallelasync/invokeAsync")
167: @WebResult(name="response",targetNamespace="")
168: @RequestWrapper(localName="invokeAsync",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.InvokeAsync")
169: @ResponseWrapper(localName="invokeAsyncResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.InvokeAsyncResponse")
170: public String invokeAsync(
171: @WebParam(name="request",targetNamespace="")
172: String request);
173:
174: /**
175: *
176: * @param request
177: * @return
178: * returns javax.xml.ws.Response<org.test.parallelasync.CustomAsyncResponse>
179: */
180: @WebMethod(operationName="customAsync",action="http://org/test/parallelasync/customAsync")
181: @RequestWrapper(localName="customAsync",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.CustomAsync")
182: @ResponseWrapper(localName="customAsyncResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.CustomAsyncResponse")
183: public Response<CustomAsyncResponse> remappedAsync(
184: @WebParam(name="request",targetNamespace="")
185: String request);
186:
187: /**
188: *
189: * @param asyncHandler
190: * @param request
191: * @return
192: * returns java.util.concurrent.Future<? extends java.lang.Object>
193: */
194: @WebMethod(operationName="customAsync",action="http://org/test/parallelasync/customAsync")
195: @RequestWrapper(localName="customAsync",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.CustomAsync")
196: @ResponseWrapper(localName="customAsyncResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.CustomAsyncResponse")
197: public Future<?> remappedAsync(
198: @WebParam(name="request",targetNamespace="")
199: String request,
200: @WebParam(name="asyncHandler",targetNamespace="")
201: AsyncHandler<CustomAsyncResponse> asyncHandler);
202:
203: /**
204: *
205: * @param request
206: * @return
207: * returns java.lang.String
208: */
209: @WebMethod(operationName="customAsync",action="http://org/test/parallelasync/customAsync")
210: @WebResult(name="response",targetNamespace="")
211: @RequestWrapper(localName="customAsync",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.CustomAsync")
212: @ResponseWrapper(localName="customAsyncResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.CustomAsyncResponse")
213: public String remapped(
214: @WebParam(name="request",targetNamespace="")
215: String request);
216:
217: /**
218: *
219: * @param request
220: * @return
221: * returns javax.xml.ws.Response<org.test.parallelasync.AnotherResponse>
222: */
223: @WebMethod(operationName="another",action="http://org/test/parallelasync/another")
224: @RequestWrapper(localName="another",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.Another")
225: @ResponseWrapper(localName="anotherResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.AnotherResponse")
226: public Response<AnotherResponse> anotherAsyncAsync(
227: @WebParam(name="request",targetNamespace="")
228: String request);
229:
230: /**
231: *
232: * @param asyncHandler
233: * @param request
234: * @return
235: * returns java.util.concurrent.Future<? extends java.lang.Object>
236: */
237: @WebMethod(operationName="another",action="http://org/test/parallelasync/another")
238: @RequestWrapper(localName="another",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.Another")
239: @ResponseWrapper(localName="anotherResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.AnotherResponse")
240: public Future<?> anotherAsyncAsync(
241: @WebParam(name="request",targetNamespace="")
242: String request,
243: @WebParam(name="asyncHandler",targetNamespace="")
244: AsyncHandler<AnotherResponse> asyncHandler);
245:
246: /**
247: *
248: * @param request
249: * @return
250: * returns java.lang.String
251: */
252: @WebMethod(operationName="another",action="http://org/test/parallelasync/another")
253: @WebResult(name="response",targetNamespace="")
254: @RequestWrapper(localName="another",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.Another")
255: @ResponseWrapper(localName="anotherResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.AnotherResponse")
256: public String anotherAsync(
257: @WebParam(name="request",targetNamespace="")
258: String request);
259:
260: /**
261: *
262: * @param request
263: * @return
264: * returns java.lang.String
265: */
266: @WebMethod(operationName="realCustomAsync",action="http://org/test/parallelasync/customAsync")
267: @WebResult(name="response",targetNamespace="")
268: @RequestWrapper(localName="customAsync",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.CustomAsync")
269: @ResponseWrapper(localName="customAsyncResponse",targetNamespace="http://org/test/parallelasync",className="org.test.parallelasync.CustomAsyncResponse")
270: public String customAsync(
271: @WebParam(name="request",targetNamespace="")
272: String request);
273:
274: }
|