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/02/28 16:30:33 UTC

cvs commit: ws-axis/c/src/transport/axis3 HTTPTransport.cpp HTTPTransport.hpp

prestonf    2005/02/28 07:30:33

  Modified:    c/src/transport/axis3 HTTPTransport.cpp HTTPTransport.hpp
  Log:
  Hi All,
  I think this will complete what needs to be done for AXISCPP-490.
  
  Regards,
  Fred Preston.
  
  Revision  Changes    Path
  1.15      +10 -0     ws-axis/c/src/transport/axis3/HTTPTransport.cpp
  
  Index: HTTPTransport.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis3/HTTPTransport.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- HTTPTransport.cpp	24 Feb 2005 17:02:11 -0000	1.14
  +++ HTTPTransport.cpp	28 Feb 2005 15:30:33 -0000	1.15
  @@ -25,6 +25,7 @@
   #endif
   
   #include "HTTPTransport.hpp"
  +#include "../../common/AxisGenException.h"
   
   #include <stdio.h>
   #include <iostream>
  @@ -1488,3 +1489,12 @@
       return m_strSessionKey.c_str();
   }
   
  +const char * HTTPTransport::getLastChannelError()
  +{
  +	if( m_pActiveChannel != NULL)
  +	{
  +		return m_pActiveChannel->GetLastErrorMsg().c_str();
  +	}
  +
  +	return NULL;
  +}
  
  
  
  1.7       +6 -5      ws-axis/c/src/transport/axis3/HTTPTransport.hpp
  
  Index: HTTPTransport.hpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis3/HTTPTransport.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HTTPTransport.hpp	24 Feb 2005 17:02:11 -0000	1.6
  +++ HTTPTransport.hpp	28 Feb 2005 15:30:33 -0000	1.7
  @@ -89,8 +89,9 @@
       virtual void			setMaintainSession( bool bSession);
   
       void					setAttachment( const char * pcAttachmentId, const char * pcAttachment) {};
  -	ISoapAttachment*	getAttachment( const char * pcAttachmentId) { return NULL;};
  -    char* getIncomingSOAPMimeHeaders() {return NULL;}
  +	ISoapAttachment *		getAttachment( const char * pcAttachmentId) { return NULL;};
  +    char *					getIncomingSOAPMimeHeaders() {return NULL;}
  +	const char *			getLastChannelError();
   
     protected:
       void					processResponseHTTPHeaders() throw (HTTPTransportException);
  @@ -204,9 +205,9 @@
     /**
       * Channel used for communication
       */
  -    IChannel *	m_pNormalChannel;	
  -    IChannel *	m_pSecureChannel;	
  -    IChannel *	m_pActiveChannel;	
  +    IChannel *	m_pNormalChannel;
  +    IChannel *	m_pSecureChannel;
  +    IChannel *	m_pActiveChannel;
       bool		m_bChannelSecure;
   
     /**