01: package demo.hw.client;
02:
03: import javax.xml.ws.AsyncHandler;
04: import javax.xml.ws.Response;
05:
06: import org.objectweb.hello_world_async_soap_http.types.GreetMeSometimeResponse;
07:
08: public class TestAsyncHandler implements
09: AsyncHandler<GreetMeSometimeResponse> {
10:
11: private GreetMeSometimeResponse reply;
12:
13: public void handleResponse(
14: Response<GreetMeSometimeResponse> response) {
15: try {
16: System.err.println("handleResponse called");
17: reply = response.get();
18: } catch (Exception ex) {
19: ex.printStackTrace();
20: }
21: }
22:
23: public String getResponse() {
24: return reply.getResponseType();
25: }
26:
27: }
|