axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/engine/client Call.cpp Stub.cpp
Date Thu, 02 Jun 2005 03:23:30 GMT
samisa      2005/06/01 20:23:30

  Modified:    c/src/engine/client Call.cpp Stub.cpp
  Log:
  Removed commented code and added logical comments.
  
  Revision  Changes    Path
  1.113     +4 -96     ws-axis/c/src/engine/client/Call.cpp
  
  Index: Call.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/engine/client/Call.cpp,v
  retrieving revision 1.112
  retrieving revision 1.113
  diff -u -r1.112 -r1.113
  --- Call.cpp	1 Jun 2005 14:22:55 -0000	1.112
  +++ Call.cpp	2 Jun 2005 03:23:30 -0000	1.113
  @@ -21,18 +21,6 @@
    *
    */
   
  -/*
  - * Revision 1.1  2004/05/31 samisa
  - * Added setProxy
  - */
  -
  -/*
  - * Revision 1.2  2005/01/06 Roshan
  - * Added IHeaderBlock* Call::createHeaderBlock(AxisChar* pachLocalName, 
  - *                                      AxisChar* pachUri, AxisChar* pachPrefix)
  - */
  -
  -
   #include <axis/client/Call.hpp>
   #include <axis/AxisException.hpp>
   #include "../../common/AxisConfig.h"
  @@ -69,8 +57,10 @@
       m_nStatus = AXIS_SUCCESS;
       m_pchSessionID = NULL;
   
  +    // Setup Transport
       try
       {
  +        // Get a transport object from factory
           if( !m_pTransport)
   		{
               m_pTransport = SOAPTransportFactory::getTransportObject(m_nTransportType);
  @@ -81,6 +71,7 @@
   			}
   		}
   
  +        // SSL channel related initilizations
           char * pcSSLChannelInfo = g_pConfig->getAxisConfProperty( AXCONF_SECUREINFO);
   		if( pcSSLChannelInfo && strlen( pcSSLChannelInfo) > 0)
   		{
  @@ -141,14 +132,6 @@
   
   int Call::setEndpointURI (const char* pchEndpointURI)
   {
  -    /*if (m_pcEndPointUri)
  -        delete [] m_pcEndPointUri;
  -    m_pcEndPointUri = NULL;
  -    if (pchEndpointURI)
  -    {
  -        m_pcEndPointUri = new char[strlen(pchEndpointURI)+1];
  -        strcpy(m_pcEndPointUri, pchEndpointURI);
  -    }*/
       m_pTransport->setEndpointUri(pchEndpointURI);
   
       return AXIS_SUCCESS;
  @@ -220,11 +203,7 @@
       try
       {
           m_nStatus = AXIS_SUCCESS;
  -        // remove_headers(&m_Soap);
  -        /*if (AXIS_SUCCESS != openConnection ()) {
  -        	m_nStatus = AXIS_FAIL;
  -            return AXIS_FAIL;
  -        }*/
  +        
           if (m_pAxisEngine)
               delete m_pAxisEngine;
           m_pAxisEngine = new ClientAxisEngine ();
  @@ -425,77 +404,6 @@
   }
   
   /*
  - * This method takes a look at the m_Soap structure and open 
  - * transport layer connection to the server. Then this adds the 
  - * relevant function pointers and streams to the m_Soap structure, 
  - * which is given to the AxisEngine. AxisEngine can use those 
  - * functions with those streams at any time it wants to send/receive
  - * bytes to/from the server.
  - */
  -int Call::openConnection()
  -{
  -    /*try
  -    {
  -        if( !m_pTransport)
  -		{
  -            m_pTransport = SOAPTransportFactory::getTransportObject(m_nTransportType);
  -
  -			if( !m_pTransport)
  -			{
  -				return AXIS_FAIL;
  -			}
  -		}
  -
  -        m_pTransport->setEndpointUri( m_pcEndPointUri);
  -        char * pcSSLChannelInfo = g_pConfig->getAxisConfProperty( AXCONF_SECUREINFO);
  -		if( pcSSLChannelInfo && strlen( pcSSLChannelInfo) > 0)
  -		{
  -			char *	pszArgPtr = NULL;
  -			int		iArgIndex = 0;
  -			string	sArguments[8];
  -
  -			pszArgPtr = strtok( pcSSLChannelInfo, ",");
  -
  -			while( pszArgPtr != NULL && iArgIndex < 8)
  -			{
  -				sArguments[iArgIndex] = pszArgPtr;
  -
  -				iArgIndex++;
  -
  -				pszArgPtr = strtok( NULL, ",");
  -
  -				while( pszArgPtr != NULL && *pszArgPtr == ' ' && *pszArgPtr != '\0')
  -				{
  -					pszArgPtr++;
  -				}
  -			}
  -
  -			m_nStatus = m_pTransport->setTransportProperty( SECURE_PROPERTIES, (const char *)
&sArguments);
  -		}
  -
  -        //if use proxy then set proxy
  -        if( m_bUseProxy)
  -		{
  -    	    m_pTransport->setProxy(m_strProxyHost.c_str(), m_uiProxyPort);
  -		}
  -
  -    }
  -    catch( AxisException& e)
  -    {
  -		char *	pszError = new char[strlen( e.what()) + 1];
  -		strcpy( pszError, e.what());
  -
  -		throw AxisGenException( e.getExceptionCode(), const_cast<char*>(pszError));
  -    }
  -    catch(...)
  -    {
  -        throw;
  -    }*/
  -
  -    return m_nStatus = AXIS_SUCCESS;
  -}
  -
  -/*
    * This method closes the connection of this object to the server
    */
   void Call::closeConnection()
  
  
  
  1.45      +0 -1      ws-axis/c/src/engine/client/Stub.cpp
  
  Index: Stub.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/engine/client/Stub.cpp,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- Stub.cpp	1 Jun 2005 05:12:32 -0000	1.44
  +++ Stub.cpp	2 Jun 2005 03:23:30 -0000	1.45
  @@ -73,7 +73,6 @@
       {
           m_pTransport->setEndpointUri( pcEndPoint);
       }
  -    //m_pCall->setEndpointURI (pcEndPoint);
   }
   
   void
  
  
  

Mime
View raw message