You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ga...@apache.org on 2007/05/24 06:06:33 UTC

svn commit: r541147 - /incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptor.java

Author: gawor
Date: Wed May 23 21:06:32 2007
New Revision: 541147

URL: http://svn.apache.org/viewvc?view=rev&rev=541147
Log:
close() not always called on client-side handlers (bugfix CXF-679, thanks Jeff)

Modified:
    incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptor.java

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptor.java?view=diff&rev=541147&r1=541146&r2=541147
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptor.java (original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/soap/SOAPHandlerInterceptor.java Wed May 23 21:06:32 2007
@@ -128,9 +128,12 @@
         if (!invoker.invokeProtocolHandlers(isRequestor(message), context)) {
             handleAbort(message, context);
         } 
-
-        //If this is the outbound and end of MEP, call MEP completion
-        if (isOutbound(message) && isMEPComlete(message)) {
+        
+        // If this is the outbound and end of MEP, call MEP completion
+        if (isRequestor(message) && invoker.getLogicalHandlers().isEmpty() 
+            && !isOutbound(message) && isMEPComlete(message)) {
+            onCompletion(message);
+        } else if (isOutbound(message) && isMEPComlete(message)) {
             onCompletion(message);
         }
     }