Author: amilas
Date: Sun Mar 29 04:39:39 2009
New Revision: 759639

URL: http://svn.apache.org/viewvc?rev=759639&view=rev
Log:
since original thread returns at this point. we need to build the message. 
otherwise 
there may be a problem when axis2 receiving the thread

Modified:
    
webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/transport/base/SynchronousCallback.java

Modified: 
webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/transport/base/SynchronousCallback.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/transport/base/SynchronousCallback.java?rev=759639&r1=759638&r2=759639&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/transport/base/SynchronousCallback.java
 (original)
+++ 
webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/transport/base/SynchronousCallback.java
 Sun Mar 29 04:39:39 2009
@@ -40,6 +40,10 @@
         // if some other thread has access and complete then return without 
doing any thing.
         // thread should have activate by the first message.
         if (!isComplete) {
+            // this code is invoked only if the code use with axis2 at the 
client side
+            // when axis2 client receive messages it waits in the sending 
thread until the response comes.
+            // so this thread only notify the waiting thread and hence we need 
to build the message here.
+            inMessageContext.getEnvelope().build();
             OperationContext operationContext = 
outMessageContext.getOperationContext();
             MessageContext msgCtx =
                     
operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);


Reply via email to