ws-wsrf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject svn commit: r348237 - /webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java
Date Tue, 22 Nov 2005 20:18:02 GMT
Author: ips
Date: Tue Nov 22 12:17:58 2005
New Revision: 348237

URL: http://svn.apache.org/viewcvs?rev=348237&view=rev
Log:
fixed bug in handleResponse() that was causing one-way MEPs to fault instead of returning
an empty HTTP 202 response

Modified:
    webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java

Modified: webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java?rev=348237&r1=348236&r2=348237&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java (original)
+++ webservices/wsrf/trunk/src/java/org/apache/ws/resource/handler/ResourceHandler.java Tue
Nov 22 12:17:58 2005
@@ -227,7 +227,6 @@
                XmlObject responseBodyElem = (XmlObject) responseBodyElems.get( i );
                addSOAPBodyElements( responseBodyElem, responseBody );
             }
-
             if ( LOG.isDebugEnabled(  ) )
             {
                LOG.debug( "Sending SOAP response: \n" + responseEnvelope );
@@ -235,8 +234,7 @@
          }
          else // one-way MEP
          {
-            // a null message tells the SOAP engine to return an empty HTTP response with
a 202 status code
-            ( (SOAPMessageContext) msgContext ).setMessage( null );
+            LOG.debug( "Sending empty HTTP response with status code 202..." );
          }
       }
       catch ( Exception e )
@@ -362,7 +360,7 @@
    /**
     * @param soapMsg a SAAJ SOAP message
     *
-    * @return
+    * @return the SOAP envelope contained in the specified SOAP message
     */
    private SOAPEnvelope getEnvelope( SOAPMessage soapMsg )
    {
@@ -428,7 +426,7 @@
     * @param service
     * @param requestXBean
     *
-    * @return
+    * @return the Java method that is mapped to the specified request XMLBean
     */
    private Method getServiceMethod( WsrfService service,
                                     XmlObject   requestXBean )



Mime
View raw message