You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by he...@apache.org on 2005/06/28 08:46:32 UTC

svn commit: r202140 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java

Author: hemapani
Date: Mon Jun 27 23:46:32 2005
New Revision: 202140

URL: http://svn.apache.org/viewcvs?rev=202140&view=rev
Log:
fixing the error in Servlet writing the resposne

Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java?rev=202140&r1=202139&r2=202140&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/http/AxisServlet.java Mon Jun 27 23:46:32 2005
@@ -178,7 +178,7 @@
                 req.getHeader(HTTPConstants.HEADER_SOAP_ACTION),
                 req.getRequestURL().toString(),
                 configContext);
-            Object contextWritten = msgContext.getProperty(Constants.RESPONSE_WRITTEN);
+            Object contextWritten = msgContext.getOperationContext().getProperty(Constants.RESPONSE_WRITTEN);
             if (contextWritten == null || !Constants.VALUE_TRUE.equals(contextWritten)) {
                 res.setStatus(HttpServletResponse.SC_ACCEPTED);
             }
@@ -210,7 +210,7 @@
             msgContext.setProperty(MessageContext.TRANSPORT_OUT, res.getOutputStream());
             engine.receive(msgContext);
 
-            Object contextWritten = msgContext.getProperty(Constants.RESPONSE_WRITTEN);
+            Object contextWritten = msgContext.getOperationContext().getProperty(Constants.RESPONSE_WRITTEN);
             if (contextWritten == null || !Constants.VALUE_TRUE.equals(contextWritten)) {
                 res.setStatus(HttpServletResponse.SC_ACCEPTED);
             }