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/06/08 10:04:20 UTC
cvs commit: ws-axis/c/samples/client/rpcfault AxisDivByZeroException.cpp MathOps.cpp
damitha 2004/06/08 01:04:20
Modified: c/samples/client/rpcfault AxisDivByZeroException.cpp
MathOps.cpp
Log:
Revision Changes Path
1.3 +13 -13 ws-axis/c/samples/client/rpcfault/AxisDivByZeroException.cpp
Index: AxisDivByZeroException.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/client/rpcfault/AxisDivByZeroException.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AxisDivByZeroException.cpp 8 Jun 2004 07:27:15 -0000 1.2
+++ AxisDivByZeroException.cpp 8 Jun 2004 08:04:20 -0000 1.3
@@ -54,19 +54,19 @@
{
/*User can do something like deserializing the struct into a string*/
int iSize = strlen(pFault->varString) + 8;
- char* sMessage = (char*) malloc(iSize);
- m_sMessage = (char*) malloc(iSize);
- char carrTempBuff[4];
- sprintf(carrTempBuff, "%d", pFault->varInt);
- strcat(sMessage, carrTempBuff);
- strcat(sMessage, "\n");
- sprintf(carrTempBuff, "%f", pFault->varFloat);
- strcat(sMessage, carrTempBuff);
- strcat(sMessage, "\n");
- strcat(sMessage, pFault->varString);
- strcat(sMessage, "\n");
- m_sMessage = sMessage;
- free(sMessage);
+ char* sMessage = (char*) malloc(iSize);
+ m_sMessage = (char*) malloc(iSize);
+ char carrTempBuff[4];
+ sprintf(carrTempBuff, "%d", pFault->varInt);
+ strcat(sMessage, carrTempBuff);
+ strcat(sMessage, "\n");
+ sprintf(carrTempBuff, "%f", pFault->varFloat);
+ strcat(sMessage, carrTempBuff);
+ strcat(sMessage, "\n");
+ strcat(sMessage, pFault->varString);
+ strcat(sMessage, "\n");
+ m_sMessage = sMessage;
+ free(sMessage);
}
void AxisDivByZeroException::processException(exception* e)
1.11 +3 -1 ws-axis/c/samples/client/rpcfault/MathOps.cpp
Index: MathOps.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/client/rpcfault/MathOps.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- MathOps.cpp 8 Jun 2004 07:27:15 -0000 1.10
+++ MathOps.cpp 8 Jun 2004 08:04:20 -0000 1.11
@@ -24,7 +24,7 @@
{
m_pCall = new Call();
m_pCall->setProtocol(APTHTTP);
- m_pCall->setEndpointURI("http://localhost:5555/axis/MathOps");
+ m_pCall->setEndpointURI("http://localhost/axis/MathOps");
}
MathOps::~MathOps()
@@ -81,6 +81,8 @@
(void*) Axis_Create_DivByZeroStruct,
(void*) Axis_Delete_DivByZeroStruct,"faultstruct1", 0);
/*User code to handle the struct can be inserted here*/
+ char* temp = pFaultDetail->varString;
+ printf("%s\n", temp);
printf("faultcode:%s\n", cFaultcode);
printf("faultstring:%s\n", cFaultstring);
printf("faultactor:%s\n", cFaultactor);