Return-Path: Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 94512 invoked by uid 500); 15 Aug 2003 07:17:11 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 94501 invoked by uid 500); 15 Aug 2003 07:17:11 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 15 Aug 2003 07:17:34 -0000 Message-ID: <20030815071734.96097.qmail@minotaur.apache.org> From: roshan@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/c/src/server/handlers/global/testhandler1 TestHandler1.cpp TestGlobal.h TestGlobal.cpp X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 +//#include 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* 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* 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 -#include +//#include +#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* OptionList) { m_Option = OptionList; +} + +int TestGlobal::Init() +{ + //do any initialization, resetting of values + + return SUCCESS; +} + +int TestGlobal::Fini() +{ + //do any finalizatoin + + return SUCCESS; }