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 ni...@apache.org on 2005/02/22 04:26:26 UTC
cvs commit: ws-axis/c/samples/client/simple Calculator.cpp Calculator.hpp
nithya 2005/02/21 19:26:26
Modified: c/samples/client/simple Calculator.cpp Calculator.hpp
Log:
Replaced the source with generated source by wsdl2ws due to change in return type
Revision Changes Path
1.15 +12 -12 ws-axis/c/samples/client/simple/Calculator.cpp
Index: Calculator.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/client/simple/Calculator.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Calculator.cpp 17 Feb 2005 16:28:41 -0000 1.14
+++ Calculator.cpp 22 Feb 2005 03:26:26 -0000 1.15
@@ -32,12 +32,12 @@
*/
xsd__int Calculator::add(xsd__int Value0, xsd__int Value1)
{
- xsd__int Ret = 0;
+ xsd__int* Ret = NULL;
const char* pcCmplxFaultName;
try
{
if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER))
- return Ret;
+ return *Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "Calculator#add");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
m_pCall->setOperation("add", "http://localhost/axis/Calculator");
@@ -52,7 +52,7 @@
}
}
m_pCall->unInitialize();
- return Ret;
+ return *Ret;
}
catch(AxisException& e)
{
@@ -78,12 +78,12 @@
*/
xsd__int Calculator::sub(xsd__int Value0, xsd__int Value1)
{
- xsd__int Ret = 0;
+ xsd__int* Ret = NULL;
const char* pcCmplxFaultName;
try
{
if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER))
- return Ret;
+ return *Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "Calculator#sub");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
m_pCall->setOperation("sub", "http://localhost/axis/Calculator");
@@ -98,7 +98,7 @@
}
}
m_pCall->unInitialize();
- return Ret;
+ return *Ret;
}
catch(AxisException& e)
{
@@ -124,12 +124,12 @@
*/
xsd__int Calculator::mul(xsd__int Value0, xsd__int Value1)
{
- xsd__int Ret = 0;
+ xsd__int* Ret = NULL;
const char* pcCmplxFaultName;
try
{
if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER))
- return Ret;
+ return *Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "Calculator#mul");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
m_pCall->setOperation("mul", "http://localhost/axis/Calculator");
@@ -144,7 +144,7 @@
}
}
m_pCall->unInitialize();
- return Ret;
+ return *Ret;
}
catch(AxisException& e)
{
@@ -170,12 +170,12 @@
*/
xsd__int Calculator::div(xsd__int Value0, xsd__int Value1)
{
- xsd__int Ret = 0;
+ xsd__int* Ret = NULL;
const char* pcCmplxFaultName;
try
{
if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER))
- return Ret;
+ return *Ret;
m_pCall->setTransportProperty(SOAPACTION_HEADER , "Calculator#div");
m_pCall->setSOAPVersion(SOAP_VER_1_1);
m_pCall->setOperation("div", "http://localhost/axis/Calculator");
@@ -190,7 +190,7 @@
}
}
m_pCall->unInitialize();
- return Ret;
+ return *Ret;
}
catch(AxisException& e)
{
1.4 +4 -4 ws-axis/c/samples/client/simple/Calculator.hpp
Index: Calculator.hpp
===================================================================
RCS file: /home/cvs/ws-axis/c/samples/client/simple/Calculator.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Calculator.hpp 17 Feb 2005 16:28:41 -0000 1.3
+++ Calculator.hpp 22 Feb 2005 03:26:26 -0000 1.4
@@ -19,10 +19,10 @@
public:
STORAGE_CLASS_INFO virtual ~Calculator();
public:
- STORAGE_CLASS_INFO xsd__int add(xsd__int Value0,xsd__int Value1);
- STORAGE_CLASS_INFO xsd__int sub(xsd__int Value0,xsd__int Value1);
- STORAGE_CLASS_INFO xsd__int mul(xsd__int Value0,xsd__int Value1);
- STORAGE_CLASS_INFO xsd__int div(xsd__int Value0,xsd__int Value1);
+ STORAGE_CLASS_INFO xsd__int add(xsd__int Value0, xsd__int Value1);
+ STORAGE_CLASS_INFO xsd__int sub(xsd__int Value0, xsd__int Value1);
+ STORAGE_CLASS_INFO xsd__int mul(xsd__int Value0, xsd__int Value1);
+ STORAGE_CLASS_INFO xsd__int div(xsd__int Value0, xsd__int Value1);
};
#endif /* !defined(__CALCULATOR_CLIENTSTUB_H__INCLUDED_)*/