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 na...@apache.org on 2007/02/16 05:33:48 UTC

svn commit: r508308 - in /webservices/axis/trunk/c/src: engine/client/ClientAxisEngine.cpp transport/SOAPTransport.h

Author: nadiramra
Date: Thu Feb 15 20:33:47 2007
New Revision: 508308

URL: http://svn.apache.org/viewvc?view=rev&rev=508308
Log:
AXISCPP-925 one-way call support. Need to be able to detect if there is response data.

Modified:
    webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp
    webservices/axis/trunk/c/src/transport/SOAPTransport.h

Modified: webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp?view=diff&rev=508308&r1=508307&r2=508308
==============================================================================
--- webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp (original)
+++ webservices/axis/trunk/c/src/engine/client/ClientAxisEngine.cpp Thu Feb 15 20:33:47 2007
@@ -219,8 +219,11 @@
             break;
 
         // Get header and body only if we are expecting a response
-        if (!noResponse)
+        if (!noResponse || m_pSoap->isThereResponseData())
         {
+            // There is response data, for one-way it must be a fault.
+            noResponse = false;
+            
             // version not supported set status to fail
             int nSoapVersion = m_pDZ->getVersion ();
             if (nSoapVersion == VERSION_LAST)     

Modified: webservices/axis/trunk/c/src/transport/SOAPTransport.h
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/transport/SOAPTransport.h?view=diff&rev=508308&r1=508307&r2=508308
==============================================================================
--- webservices/axis/trunk/c/src/transport/SOAPTransport.h (original)
+++ webservices/axis/trunk/c/src/transport/SOAPTransport.h Thu Feb 15 20:33:47 2007
@@ -517,7 +517,13 @@
     * Get the last channel error string from the active channel.
     * @return string - Last active channel error string.
     */
-    virtual const char * getLastChannelError() {return NULL;};
+    virtual const char * getLastChannelError() {return NULL;}
+    
+  /**
+    * Is there a response that needs to be consumed?
+    *  @return boolean - true if response data needs to be processed, falso otherwise.
+    */
+    virtual bool isThereResponseData() {return false;}
    
   /**
     * Sets the username to be used for basic authentication



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org