You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2004/05/24 11:51:21 UTC
cvs commit: ws-axis/c/src/engine/server ServerAxisEngine.cpp
damitha 2004/05/24 02:51:21
Modified: c/src/engine/server ServerAxisEngine.cpp
Log:
Revision Changes Path
1.14 +7 -3 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.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ServerAxisEngine.cpp 24 May 2004 05:44:20 -0000 1.13
+++ ServerAxisEngine.cpp 24 May 2004 09:51:21 -0000 1.14
@@ -326,16 +326,20 @@
//m_pSZ->setSoapFault (SoapFault::getSoapFault (CLIENT_SOAP_SOAPCONTENTERROR));
#ifdef ENABLE_AXIS_EXCEPTION
int iExceptionCode = e.getExceptionCode();
- char* tempStr = (char*) e.what();
- AXISTRACE2("Exception:", tempStr, CRITICAL);
+ char* pcTempStr = (char*) e.what();
+ AXISTRACE2("Exception:", pcTempStr, CRITICAL);
if(AXISC_SERVICE_THROWN_EXCEPTION == iExceptionCode)
{
+ /*Writes the SoapMessage in which soap body contains only Fault*/
m_pSZ->setOutputStream (pStream);
releaseHandlers(pStream);
return AXIS_SUCCESS;//Service created fault is written to the stream.
//so return success.
}
- else
+ else/* An exception has occured inside Axis C++ engine.(not in a
+ * webservice or handler). Later we handle this according to the
+ * exception code returned.
+ */
return e.getExceptionCode();
#endif
AXISC_CATCH(exception& e)