axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r478056 - /webservices/axis/trunk/c/src/engine/server/ServerAxisEngine.cpp
Date Wed, 22 Nov 2006 07:07:54 GMT
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


Mime
View raw message