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 na...@apache.org on 2006/11/22 08:07:54 UTC

svn commit: r478056 - /webservices/axis/trunk/c/src/engine/server/ServerAxisEngine.cpp

Author: nadiramra
Date: Tue Nov 21 23:07:53 2006
New Revision: 478056

URL: http://svn.apache.org/viewvc?view=rev&rev=478056
Log:
AXISCPP-943 stage 1. Exception messages for exception codes
are all in AxisException.hpp. Simplifies things and removes 
the .cpp files for the exceptions that inherit from AxisException. 
Also makes sense since the exception codes are defined in 
AxisException.

Modified:
    webservices/axis/trunk/c/src/engine/server/ServerAxisEngine.cpp

Modified: webservices/axis/trunk/c/src/engine/server/ServerAxisEngine.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/engine/server/ServerAxisEngine.cpp?view=diff&rev=478056&r1=478055&r2=478056
==============================================================================
--- webservices/axis/trunk/c/src/engine/server/ServerAxisEngine.cpp (original)
+++ webservices/axis/trunk/c/src/engine/server/ServerAxisEngine.cpp Tue Nov 21 23:07:53 2006
@@ -22,7 +22,6 @@
 #include "../../common/AxisUtils.h"
 #include "../../wsdd/WSDDDeployment.h"
 #include "../HandlerPool.h"
-#include "../../common/AxisMessage.h"
 #include "../../common/AxisTrace.h"
 
 extern AXIS_CPP_NAMESPACE_PREFIX HandlerPool *g_pHandlerPool;
@@ -464,8 +463,7 @@
 int ServerAxisEngine::
 setFaultOutputStream (int iFaultCode, SOAPTransport * pStream)
 {
-    AxisMessage objMessage;
-    string sMessage = objMessage.getMessage (iFaultCode);
+    string sMessage = AxisException::getMessageForExceptionCode(iFaultCode);
     SoapFault *pObjSoapFault = SoapFault::getSoapFault (iFaultCode);
     pObjSoapFault->setFaultDetail (sMessage.c_str ());
     m_pSZ->setSoapFault (pObjSoapFault);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org