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 pr...@apache.org on 2005/11/04 13:19:43 UTC

svn commit: r330801 - /webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp

Author: prestonf
Date: Fri Nov  4 04:19:38 2005
New Revision: 330801

URL: http://svn.apache.org/viewcvs?rev=330801&view=rev
Log:
An HTTP 500 error was not being caught by the transport so when this error occurred, a different, incorrect error was being reported (i.e. No response from server).

Modified:
    webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp

Modified: webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp?rev=330801&r1=330800&r2=330801&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp (original)
+++ webservices/axis/trunk/c/src/transport/axis3/HTTPTransport.cpp Fri Nov  4 04:19:38 2005
@@ -1589,9 +1589,10 @@
 
 void HTTPTransport::checkHTTPStatusCode()
 {
-// Now have a valid HTTP header that is not 100.
-	if ( m_iResponseHTTPStatusCode != 500 &&
-		 (m_iResponseHTTPStatusCode < 200 ||
+// Now have a valid HTTP header that is not 100.  Check that the status
+// returned by the HTTP response status code indicates a valid message.  If some
+// type of fault message (i.e. 404, 500, etc.), then throw an exception.
+	if ( (m_iResponseHTTPStatusCode < 200 ||
 		  m_iResponseHTTPStatusCode >= 300))
 	{
 		m_GetBytesState = eWaitingForHTTPHeader;