axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanj...@apache.org
Subject cvs commit: ws-axis/c/src/engine/client Call.cpp
Date Mon, 29 Nov 2004 12:42:59 GMT
sanjaya     2004/11/29 04:42:59

  Modified:    c/src/engine/client Call.cpp
  Log:
  1. set the sessionid property to the MessageData object on the request path
  2. cache the session id in member Call::m_pchSessionID on the response
  path
  
  Revision  Changes    Path
  1.78      +10 -1     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.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- Call.cpp	23 Nov 2004 17:21:04 -0000	1.77
  +++ Call.cpp	29 Nov 2004 12:42:59 -0000	1.78
  @@ -61,6 +61,7 @@
       m_nTransportType = APTHTTP1_1;
       m_pTransport = SOAPTransportFactory::getTransportObject(m_nTransportType);
       m_nStatus = AXIS_SUCCESS;
  +    m_pchSessionID = NULL;
   }
   
   Call::~Call ()
  @@ -202,6 +203,10 @@
                           default:;
                                   //TODO: ??
                       }
  +                    if(m_pchSessionID)
  +                    {
  +                        msgData->setProperty("sessionid", m_pchSessionID);
  +                    }
                       return AXIS_SUCCESS;
                   }
               }
  @@ -236,7 +241,11 @@
   			/* Test if deserialization failed */
   			m_nStatus = m_pIWSDZ->getStatus();
   		}
  -			
  +		MessageData *msgData = m_pAxisEngine->getMessageData();	
  +        AxisChar * pachTemp = (AxisChar *)msgData->getProperty("sessionid");
  +        int len = strlen(pachTemp);
  +        m_pchSessionID = new char[len];
  +        strcpy(m_pchSessionID, pachTemp);
           m_pAxisEngine->unInitialize ();
           delete m_pAxisEngine;
           m_pAxisEngine = NULL;
  
  
  

Mime
View raw message