You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by az...@apache.org on 2009/12/17 08:50:28 UTC

svn commit: r891574 - /webservices/axis2/trunk/java/modules/transport/http/src/org/apache/axis2/transport/http/util/RESTUtil.java

Author: azeez
Date: Thu Dec 17 07:50:28 2009
New Revision: 891574

URL: http://svn.apache.org/viewvc?rev=891574&view=rev
Log:
In the case of a RESTful request, build the message even if only the service is discovered during the dispatchAndVerify stage

Modified:
    webservices/axis2/trunk/java/modules/transport/http/src/org/apache/axis2/transport/http/util/RESTUtil.java

Modified: webservices/axis2/trunk/java/modules/transport/http/src/org/apache/axis2/transport/http/util/RESTUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/transport/http/src/org/apache/axis2/transport/http/util/RESTUtil.java?rev=891574&r1=891573&r2=891574&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/transport/http/src/org/apache/axis2/transport/http/util/RESTUtil.java (original)
+++ webservices/axis2/trunk/java/modules/transport/http/src/org/apache/axis2/transport/http/util/RESTUtil.java Thu Dec 17 07:50:28 2009
@@ -59,7 +59,7 @@
             dispatchAndVerify(msgContext);
             in = HTTPTransportUtils.handleGZip(msgContext, in);
             SOAPEnvelope soapEnvelope;
-            if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) {
+            if (msgContext.getAxisService() == null) {
                 soapEnvelope = TransportUtils.createSOAPEnvelope(null);
             } else {
                 soapEnvelope = TransportUtils.createSOAPMessage(msgContext, in, contentType);
@@ -108,7 +108,7 @@
             // 1. First dispatchAndVerify and find out the service and the operation.
             dispatchAndVerify(msgContext);
             SOAPEnvelope soapEnvelope;
-            if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) {
+            if (msgContext.getAxisService() == null) {
                 soapEnvelope = TransportUtils.createSOAPEnvelope(null);
             } else {
                 try {