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 pr...@apache.org on 2005/02/24 18:02:33 UTC
cvs commit: ws-axis/c/src/engine/client Call.cpp
prestonf 2005/02/24 09:02:33
Modified: c/src/engine/client Call.cpp
Log:
Hi All,
I think this will complete what needs to be done for AXISCPP-478.
Regards,
Fred Preston.
Revision Changes Path
1.98 +20 -4 ws-axis/c/src/engine/client/Call.cpp
Index: Call.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/engine/client/Call.cpp,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -r1.97 -r1.98
--- Call.cpp 19 Feb 2005 22:22:20 -0000 1.97
+++ Call.cpp 24 Feb 2005 17:02:33 -0000 1.98
@@ -41,6 +41,7 @@
#include "../../soap/SoapSerializer.h"
#include "../../soap/SoapDeSerializer.h"
#include "../../soap/HeaderBlock.h"
+#include "../../common/AxisGenException.h"
extern AXIS_CPP_NAMESPACE_PREFIX AxisConfig* g_pConfig;
@@ -322,9 +323,10 @@
}
}
-int Call::setTransportProperty (AXIS_TRANSPORT_INFORMATION_TYPE type,
- const char* value)
+int Call::setTransportProperty( AXIS_TRANSPORT_INFORMATION_TYPE type, const char* value)
{
+ int iSuccess = AXIS_SUCCESS;
+
// Samisa - if SOAPAction is being set add extra "" to value
if (type == SOAPACTION_HEADER)
{
@@ -334,8 +336,22 @@
delete [] tempvalue;
}
else
- m_pTransport->setTransportProperty(type, value);
- return AXIS_SUCCESS;
+ {
+ try
+ {
+ iSuccess = m_pTransport->setTransportProperty(type, value);
+ }
+ catch(AxisException& e)
+ {
+ char * pszError = new char[strlen( e.what()) + 1];
+
+ strcpy( pszError, e.what());
+
+ throw AxisGenException(e.getExceptionCode(), const_cast<char*>(pszError));
+ }
+ }
+
+ return iSuccess;
}
int Call::setHandlerProperty(AxisChar* name, void* value, int len)