axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/engine/server ServerAxisEngine.cpp
Date Fri, 12 Aug 2005 08:09:47 GMT
samisa      2005/08/12 01:09:47

  Modified:    c/src/common AxisMessage.cpp
               c/src/engine/server ServerAxisEngine.cpp
  Log:
  Ficxed the problem with missing operationRequestMap in server.wsdd.
  Now it will throw an exception is the operation map was missing.
  
  AXISCPP-791
  
  Revision  Changes    Path
  1.9       +1 -1      ws-axis/c/src/common/AxisMessage.cpp
  
  Index: AxisMessage.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/AxisMessage.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AxisMessage.cpp	6 Aug 2004 14:44:27 -0000	1.8
  +++ AxisMessage.cpp	12 Aug 2005 08:09:46 -0000	1.9
  @@ -75,7 +75,7 @@
               m_sMessage = "AxisWsddException:Requested method is not allowed";
               break;
           case CLIENT_WSDD_PARA_TYPE_MISMATCH:
  -            m_sMessage = "AxisWsddException:Parameter type mismatch";
  +            m_sMessage = "AxisWsddException: Missing or incorrect operationRequestMap entry
in the wsdd file";
               break;
           case SERVER_WSDD_NO_HANDLERS_CONFIGURED:
               m_sMessage = "AxisWsddException:No handlers configured in" \
  
  
  
  1.34      +9 -1      ws-axis/c/src/engine/server/ServerAxisEngine.cpp
  
  Index: ServerAxisEngine.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/engine/server/ServerAxisEngine.cpp,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- ServerAxisEngine.cpp	5 Aug 2005 02:23:26 -0000	1.33
  +++ ServerAxisEngine.cpp	12 Aug 2005 08:09:46 -0000	1.34
  @@ -200,7 +200,15 @@
               sOperation = sOperation.substr (0, sOperation.length () - 1);
           }
   
  -        AxisString operationToInvoke = m_pService->getOperationForRequest(sOperation.c_str());
  +        const char* cpOperationName = m_pService->getOperationForRequest(sOperation.c_str());
  +        if (!cpOperationName)
  +        {
  +            AXISTRACE1("CLIENT_WSDD_PARA_TYPE_MISMATCH - Missing or incorrect operationRequestMap
entry in the wsdd file", CRITICAL);
  +            throw AxisWsddException(CLIENT_WSDD_PARA_TYPE_MISMATCH);
  +            break;
  +        }
  +
  +        AxisString operationToInvoke = cpOperationName;
   
           m_pMsgData->setOperationName (operationToInvoke.c_str ());
   
  
  
  

Mime
View raw message