axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r891574 - /webservices/axis2/trunk/java/modules/transport/http/src/org/apache/axis2/transport/http/util/RESTUtil.java
Date Thu, 17 Dec 2009 07:50:28 GMT
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 {



Mime
View raw message