From e57167ee2a0b9dd6fa8e7f88cb5a4e79759e00c6 Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 14 Jan 2011 15:00:50 +0000 Subject: TUSCANY-3784 - Add multiple operations and a void return type to the async part of the implementation same git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1059033 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/sample/impl/SampleWSDLInvoker.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl') diff --git a/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl/SampleWSDLInvoker.java b/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl/SampleWSDLInvoker.java index 6758c1fc1f..41e53d90b7 100644 --- a/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl/SampleWSDLInvoker.java +++ b/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl/SampleWSDLInvoker.java @@ -71,8 +71,9 @@ class SampleWSDLInvoker extends InterceptorAsyncImpl { // At this point we could serialize the AsyncResponseInvoker and pick it up again // later to send the async response - //((RuntimeEndpoint)msg.getTo()).invokeAsyncResponse(responseMsg); - respInvoker.invokeAsyncResponse(responseMsg); + if (responseMsg.getBody() != null){ + respInvoker.invokeAsyncResponse(responseMsg); + } } // end method invokeAsyncRequest public Message processRequest(Message msg) { -- cgit v1.2.3