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 sa...@apache.org on 2003/09/23 13:56:52 UTC

cvs commit: ws-axis/c/src/client Call.cpp

sanjaya     2003/09/23 04:56:52

  Modified:    c/src/client Call.cpp
  Log:
  -Changes prompte by the change of IWrapperSoapSerializer* and IWrapperDeSerializer* to
  SoapSerializer* and SoapDeSerializer*.
  -Added extern "C" signatures of the transport api functions
  -implemented OpenConnecion and CloseConnection methods
  -implemented setSoapVersion method
  
  Revision  Changes    Path
  1.5       +20 -5     ws-axis/c/src/client/Call.cpp
  
  Index: Call.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/client/Call.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Call.cpp	22 Sep 2003 05:12:21 -0000	1.4
  +++ Call.cpp	23 Sep 2003 11:56:52 -0000	1.5
  @@ -3,7 +3,6 @@
   //////////////////////////////////////////////////////////////////////
   
   #include "Call.h"
  -
   //#include "../../../common/IMessageData.h"
   //#include "../../../common/ISoapMethod.h"
   
  @@ -13,6 +12,11 @@
   
   extern "C" int initialize_module(int bServer);
   
  +extern "C" int send_response_bytes(const char* res, const void* opstream);
  +extern "C" int get_request_bytes(char* req, int reqsize, int* retsize, const void* ipstream);
  +extern "C" int send_transport_information(void *str);
  +extern "C" int receive_transport_information(void *str);
  +
   Call::Call()
   {
   	m_pAxisEngine = NULL;
  @@ -198,8 +202,8 @@
   		m_pMsgData = m_pAxisEngine->GetMessageData();
   		if (m_pMsgData)
   		{
  -			m_pMsgData->getSoapSerializer(&m_pIWSSZ);
  -			m_pMsgData->getSoapDeSerializer(&m_pIWSDZ);
  +			m_pMsgData->getSoapSerializer((IWrapperSoapSerializer**)(&m_pIWSSZ));
  +			m_pMsgData->getSoapDeSerializer((IWrapperSoapDeSerializer**)(&m_pIWSDZ));
   			if (m_pIWSSZ && m_pIWSDZ)
   			{
   				return SUCCESS;
  @@ -241,7 +245,10 @@
    */
   int Call::OpenConnection()
   {
  -	
  +	m_Soap.transport.pGetFunct = get_request_bytes;
  +	m_Soap.transport.pSendFunct = send_response_bytes;
  +	m_Soap.transport.pGetTrtFunct = receive_transport_information;
  +	m_Soap.transport.pSendTrtFunct = send_transport_information;
   	return SUCCESS;
   }
   
  @@ -251,5 +258,13 @@
    */
   void Call::CloseConnection()
   {
  -	
  +	m_Soap.transport.pGetFunct = NULL;
  +	m_Soap.transport.pSendFunct = NULL;
  +	m_Soap.transport.pGetTrtFunct = NULL;
  +	m_Soap.transport.pSendTrtFunct = NULL;
  +}
  +
  +void Call::SetSOAPVersion(SOAP_VERSION version)
  +{
  +	m_pIWSSZ->setSoapVersion(version);
   }