axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ros...@apache.org
Subject cvs commit: ws-axis/c/src/server/web_services/cpp_deployment_wrapper CPP_DeploymentWrapper.h CPP_DeploymentWrapper.cpp
Date Thu, 16 Oct 2003 12:08:47 GMT
roshan      2003/10/16 05:08:47

  Modified:    c/src/server/web_services/cpp_deployment_wrapper
                        CPP_DeploymentWrapper.h CPP_DeploymentWrapper.cpp
  Log:
  added code to support deployment tool
  
  Revision  Changes    Path
  1.2       +0 -2      ws-axis/c/src/server/web_services/cpp_deployment_wrapper/CPP_DeploymentWrapper.h
  
  Index: CPP_DeploymentWrapper.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/server/web_services/cpp_deployment_wrapper/CPP_DeploymentWrapper.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CPP_DeploymentWrapper.h	11 Oct 2003 06:12:16 -0000	1.1
  +++ CPP_DeploymentWrapper.h	16 Oct 2003 12:08:47 -0000	1.2
  @@ -90,8 +90,6 @@
   	int Invoke(IMessageData* mc);	
   private: //Methods corresponding to the web service methods
   	int deploy(IMessageData* pIMessageData);
  -private:
  -	int setResponseMethod(IMessageData* mc, const AxisChar* name);
   private: //Actual web service object
   	CPP_Deployment *pWs;
   };
  
  
  
  1.2       +14 -20    ws-axis/c/src/server/web_services/cpp_deployment_wrapper/CPP_DeploymentWrapper.cpp
  
  Index: CPP_DeploymentWrapper.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/server/web_services/cpp_deployment_wrapper/CPP_DeploymentWrapper.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- CPP_DeploymentWrapper.cpp	11 Oct 2003 06:12:16 -0000	1.1
  +++ CPP_DeploymentWrapper.cpp	16 Oct 2003 12:08:47 -0000	1.2
  @@ -66,6 +66,7 @@
   //////////////////////////////////////////////////////////////////////
   
   #include "CPP_DeploymentWrapper.h"
  +#include "common/IDeployerUtils.h"
   
   //////////////////////////////////////////////////////////////////////
   // Construction/Destruction
  @@ -73,7 +74,7 @@
   
   CPP_DeploymentWrapper::CPP_DeploymentWrapper()
   {
  -	pWs = new CPP_Deployment();
  +	//pWs = new CPP_Deployment();
   }
   
   CPP_DeploymentWrapper::~CPP_DeploymentWrapper()
  @@ -105,6 +106,8 @@
   
   int CPP_DeploymentWrapper::deploy(IMessageData *pIMessageData)
   {
  +	printf("start of the wrapper deploy method\n");
  +
   	IWrapperSoapSerializer* pIWSSZ = NULL;
   	pIMessageData->getSoapSerializer(&pIWSSZ);
   	if (!pIWSSZ) return FAIL;
  @@ -112,17 +115,16 @@
   	pIMessageData->getSoapDeSerializer(&pIWSDZ);
   	if (!pIWSDZ) return FAIL;
   
  -	setResponseMethod(pIMessageData, "deployResponse");
  +	pIWSSZ->createSoapMethod("deployResponse", pIWSSZ->getNewNamespacePrefix(), "http://www.opensource.lk/CPP_Deployment");
   
   	IParam *param0 = pIWSDZ->GetParam();
   	string asServiceName = string(param0->GetString());
   
   	IParam *param1 = pIWSDZ->GetParam();
   	string asDllPath = param1->GetString();
  -
   	
   	IParam *param2 = pIWSDZ->GetParam(); // we know that this is an array
  -	Axis_String_Array inArray;
  +	Axis_ArrayTag inArray;
   	inArray.m_Size = param2->GetArraySize();
   	if (inArray.m_Size > 0)
   		inArray.m_Array = new string[inArray.m_Size];
  @@ -130,24 +132,16 @@
   		return FAIL; //CF_ZERO_ARRAY_SIZE_ERROR
   	
   	param2->SetArrayElements((void*)(inArray.m_Array));
  -	pIWSDZ->Deserialize(param2,0);
  +	pIWSDZ->Deserialize(param2,0);		
   	
  -	int iResult = pWs->deploy(asServiceName, asDllPath, inArray);
  +	int iResult = 1;
   
  -	IParam* pRetParam = pIWSSZ->AddOutputParam(iResult);
  -	pRetParam->SetName("deployReturn");
  +	//int iResult = pWs->deploy(asServiceName, asDllPath, inArray, iDepoy);
  +	IDeployerUtils* pIDeployerUtils;
  +	pIMessageData->getWSDDDeployment(&pIDeployerUtils);
  +	pIDeployerUtils->UpdateWSDD("server.wsdd", asServiceName, asDllPath, inArray);
   
  -	return SUCCESS;
  -}
  +	return pIWSSZ->AddOutputParam("deployReturn", iResult);
   
  -int CPP_DeploymentWrapper::setResponseMethod(IMessageData *mc, const AxisChar *name)
  -{
  -	IWrapperSoapSerializer* pIWSSZ = NULL;
  -	mc->getSoapSerializer(&pIWSSZ);
  -	if (!pIWSSZ) return FAIL;
  -	ISoapMethod* pMethod = pIWSSZ->createSoapMethod();
  -	pMethod->setLocalName(name);
  -	pMethod->setPrefix(pIWSSZ->getNewNamespacePrefix());
  -	pMethod->setUri("http://www.opensource.lk/CPP_Deployment");
   	return SUCCESS;
  -}
  +}
  \ No newline at end of file
  
  
  

Mime
View raw message