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 ro...@apache.org on 2003/08/15 09:17:34 UTC

cvs commit: xml-axis/c/src/server/handlers/global/testhandler1 TestHandler1.cpp TestGlobal.h TestGlobal.cpp

roshan      2003/08/15 00:17:34

  Modified:    c/src/server/handlers/global/testhandler1 TestHandler1.cpp
                        TestGlobal.h TestGlobal.cpp
  Log:
  changed the handler to reflect new changes
  
  Revision  Changes    Path
  1.2       +1 -0      xml-axis/c/src/server/handlers/global/testhandler1/TestHandler1.cpp
  
  Index: TestHandler1.cpp
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/server/handlers/global/testhandler1/TestHandler1.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestHandler1.cpp	7 Jul 2003 13:30:06 -0000	1.1
  +++ TestHandler1.cpp	15 Aug 2003 07:17:34 -0000	1.2
  @@ -5,6 +5,7 @@
   #endif
   
   #include "TestGlobal.h"
  +//#include "../../../../common/GDefine.h"
   
   extern "C" {
   //the two export functions////////////////////////////////////////////
  
  
  
  1.3       +19 -13    xml-axis/c/src/server/handlers/global/testhandler1/TestGlobal.h
  
  Index: TestGlobal.h
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/server/handlers/global/testhandler1/TestGlobal.h,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestGlobal.h	17 Jul 2003 07:00:23 -0000	1.2
  +++ TestGlobal.h	15 Aug 2003 07:17:34 -0000	1.3
  @@ -1,23 +1,29 @@
  -#include "../../../../common/IMessageData.h"
  -#include "../../../../wsdd/WSDDHandler.h"
  -#include "../../../../wsdd/WSDDService.h"
  +#if !defined(TESTGLOBAL_H__INCLUDED_)
  +#define TESTGLOBAL_H__INCLUDED_
  +
  +#if _MSC_VER > 1000
  +#pragma once
  +#endif // _MSC_VER > 1000
  +
  +#pragma warning (disable : 4786)
  +
   #include "../../../../common/Handler.h"
   
  -#include <list>
  +//#include <list>
   
   class TestGlobal : public Handler
   {
   public:
  +	int Fini();
  +	int Init();
   	TestGlobal();
   	virtual ~TestGlobal();
  -  int Invoke(IMessageData* pMsg);
  -  void OnFault(IMessageData* pMsg);
  -
  -  string GetOption(string sArg);
  -  void SetOption(string sOption, string Value);
  -  void SetOptionList(map<string, string>* OptionList);
  -
  -protected:
  -  int m_iNumAccess;
  +	int Invoke(IMessageData* pMsg);
  +	void OnFault(IMessageData* pMsg);
  +	string GetOption(string sArg);
  +	void SetOption(string sOption, string Value);
  +	void SetOptionList(map<string, string>* OptionList);
   
   };
  +
  +#endif // !defined(TESTGLOBAL_H__INCLUDED_)
  \ No newline at end of file
  
  
  
  1.4       +29 -6     xml-axis/c/src/server/handlers/global/testhandler1/TestGlobal.cpp
  
  Index: TestGlobal.cpp
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/server/handlers/global/testhandler1/TestGlobal.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestGlobal.cpp	15 Aug 2003 04:31:26 -0000	1.3
  +++ TestGlobal.cpp	15 Aug 2003 07:17:34 -0000	1.4
  @@ -1,13 +1,14 @@
   //////////////////////////////////////////////////////////////////////
   
   #include "TestGlobal.h"
  -#include "../../../../soap/SoapDeSerializer.h"
  -#include "../../../../soap/SoapSerializer.h"
   #include <fstream>
  -#include <string>
  +//#include <string>
  +#if defined(_DEBUG)
   #include "../../../../common/Debug.h"
  +#endif
  +#include "../../../../common/AxisException.h"
   
  -using namespace std;
  +//using namespace std;
   
   //////////////////////////////////////////////////////////////////////
   // Construction/Destruction
  @@ -28,11 +29,19 @@
   // Implementation of BasicHandler interface.
   int TestGlobal::Invoke(IMessageData* md)
   {
  +
     AXIS_TRY
  -    DEBUG1("Hi, you successfully invoked TestGlobal handler");
  +	#if defined(_DEBUG)
  +		DEBUG1("Hi, you successfully invoked TestGlobal handler");
  +	#endif
  +
       return SUCCESS;
  +
     AXIS_CATCH(...)
  -    DEBUG1("inside catch block");
  +		#if defined(_DEBUG)
  +		DEBUG1("inside catch block");
  +		#endif
  +
   		return FAIL;
     AXIS_ENDCATCH
   }
  @@ -56,4 +65,18 @@
   void TestGlobal::SetOptionList(map<string, string>* OptionList)
   {
      m_Option = OptionList;
  +}
  +
  +int TestGlobal::Init()
  +{
  +	//do any initialization, resetting of values
  +
  +	return SUCCESS;
  +}
  +
  +int TestGlobal::Fini()
  +{
  +	//do any finalizatoin
  +
  +	return SUCCESS;
   }