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 sa...@apache.org on 2005/03/17 11:54:48 UTC
cvs commit: ws-axis/c/tests/auto_build/testcases/server/cpp SimpleTypeInnerUnboundedWS.cpp SimpleTypeInnerUnboundedInOutputWS.cpp RecurseTypesWS.cpp operations.cpp MathOps.cpp ManyTypeRefRoot.cpp LargeReturningString.cpp ExtensibilityQueryPortType.cpp EnumerationWS.cpp
sanjaya 2005/03/17 02:54:48
Modified: c/tests/auto_build/testcases/server/cpp
SimpleTypeInnerUnboundedWS.cpp
SimpleTypeInnerUnboundedInOutputWS.cpp
RecurseTypesWS.cpp operations.cpp MathOps.cpp
ManyTypeRefRoot.cpp LargeReturningString.cpp
ExtensibilityQueryPortType.cpp EnumerationWS.cpp
Log:
commiting changes to serverside implementation from the JIRA,
AXISCPP-508
Revision Changes Path
1.2 +38 -0 ws-axis/c/tests/auto_build/testcases/server/cpp/SimpleTypeInnerUnboundedWS.cpp
Index: SimpleTypeInnerUnboundedWS.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/SimpleTypeInnerUnboundedWS.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SimpleTypeInnerUnboundedWS.cpp 24 Sep 2004 13:24:10 -0000 1.1
+++ SimpleTypeInnerUnboundedWS.cpp 17 Mar 2005 10:54:48 -0000 1.2
@@ -0,0 +1,38 @@
+/*
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "SimpleTypeInnerUnboundedWS.hpp"
+
+
+SimpleTypeInnerUnboundedWS::SimpleTypeInnerUnboundedWS()
+{
+}
+
+SimpleTypeInnerUnboundedWS::~SimpleTypeInnerUnboundedWS()
+{
+}
+
+/* This function is called by the AxisEngine when something went wrong
+ with the current web service request processing. Appropriate actions should
+ be taken here.*/
+void SimpleTypeInnerUnboundedWS::onFault()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is first loaded. So here we can initialize any global/static
+ data structures of this web service or open database connections */
+void SimpleTypeInnerUnboundedWS::init()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is unloaded. So we can deallocate any global/static data structures
+ and close database connections etc here. */
+void SimpleTypeInnerUnboundedWS::fini()
+{
+}
+Type1* SimpleTypeInnerUnboundedWS::getInput(Type1* Value0)
+{
+ return Value0;
+}
1.2 +39 -0 ws-axis/c/tests/auto_build/testcases/server/cpp/SimpleTypeInnerUnboundedInOutputWS.cpp
Index: SimpleTypeInnerUnboundedInOutputWS.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/SimpleTypeInnerUnboundedInOutputWS.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SimpleTypeInnerUnboundedInOutputWS.cpp 24 Sep 2004 13:24:10 -0000 1.1
+++ SimpleTypeInnerUnboundedInOutputWS.cpp 17 Mar 2005 10:54:48 -0000 1.2
@@ -0,0 +1,39 @@
+/*
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "SimpleTypeInnerUnboundedInOutputWS.hpp"
+
+
+SimpleTypeInnerUnboundedInOutputWS::SimpleTypeInnerUnboundedInOutputWS()
+{
+}
+
+SimpleTypeInnerUnboundedInOutputWS::~SimpleTypeInnerUnboundedInOutputWS()
+{
+}
+
+/* This function is called by the AxisEngine when something went wrong
+ with the current web service request processing. Appropriate actions should
+ be taken here.*/
+void SimpleTypeInnerUnboundedInOutputWS::onFault()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is first loaded. So here we can initialize any global/static
+ data structures of this web service or open database connections */
+void SimpleTypeInnerUnboundedInOutputWS::init()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is unloaded. So we can deallocate any global/static data structures
+ and close database connections etc here. */
+void SimpleTypeInnerUnboundedInOutputWS::fini()
+{
+}
+Type1* SimpleTypeInnerUnboundedInOutputWS::getInput(xsd__int Value0)
+{
+ Type1* ret=new Type1();
+ return ret;
+}
1.2 +38 -0 ws-axis/c/tests/auto_build/testcases/server/cpp/RecurseTypesWS.cpp
Index: RecurseTypesWS.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/RecurseTypesWS.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RecurseTypesWS.cpp 24 Sep 2004 13:24:10 -0000 1.1
+++ RecurseTypesWS.cpp 17 Mar 2005 10:54:48 -0000 1.2
@@ -0,0 +1,38 @@
+/*
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "RecurseTypesWS.hpp"
+
+
+RecurseTypesWS::RecurseTypesWS()
+{
+}
+
+RecurseTypesWS::~RecurseTypesWS()
+{
+}
+
+/* This function is called by the AxisEngine when something went wrong
+ with the current web service request processing. Appropriate actions should
+ be taken here.*/
+void RecurseTypesWS::onFault()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is first loaded. So here we can initialize any global/static
+ data structures of this web service or open database connections */
+void RecurseTypesWS::init()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is unloaded. So we can deallocate any global/static data structures
+ and close database connections etc here. */
+void RecurseTypesWS::fini()
+{
+}
+Type1* RecurseTypesWS::getInput(Type1* Value0)
+{
+ return Value0;
+}
1.2 +38 -0 ws-axis/c/tests/auto_build/testcases/server/cpp/operations.cpp
Index: operations.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/operations.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- operations.cpp 24 Sep 2004 13:24:10 -0000 1.1
+++ operations.cpp 17 Mar 2005 10:54:48 -0000 1.2
@@ -0,0 +1,38 @@
+/*
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "operations.hpp"
+
+
+operations::operations()
+{
+}
+
+operations::~operations()
+{
+}
+
+/* This function is called by the AxisEngine when something went wrong
+ with the current web service request processing. Appropriate actions should
+ be taken here.*/
+void operations::onFault()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is first loaded. So here we can initialize any global/static
+ data structures of this web service or open database connections */
+void operations::init()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is unloaded. So we can deallocate any global/static data structures
+ and close database connections etc here. */
+void operations::fini()
+{
+}
+xsd__boolean operations::myOperation(aRecord* Value0)
+{
+ return xsd__boolean(1);
+}
1.2 +21 -43 ws-axis/c/tests/auto_build/testcases/server/cpp/MathOps.cpp
Index: MathOps.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/MathOps.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MathOps.cpp 24 Sep 2004 13:24:10 -0000 1.1
+++ MathOps.cpp 17 Mar 2005 10:54:48 -0000 1.2
@@ -3,7 +3,7 @@
* This file contains definitions of the web service
*/
-#include "MathOps.h"
+#include "MathOps.hpp"
MathOps::MathOps()
@@ -14,47 +14,25 @@
{
}
-int MathOps::div(int Value0, int Value1)
+/* This function is called by the AxisEngine when something went wrong
+ with the current web service request processing. Appropriate actions should
+ be taken here.*/
+void MathOps::onFault()
{
- if (Value1 == 0)
- {
- DivByZeroStruct* pObjFault = new DivByZeroStruct();
- if(pObjFault)
- {
- pObjFault->varString = "Division by zero exception";
- pObjFault->varInt = 1;
- pObjFault->varFloat = 10.52;
- throw pObjFault;
- }
- //throw AxisDivByZeroException();
- }
-
- if(Value0 < 0 || Value1 < 0)
- {
- OutOfBoundStruct* pObjFault = new OutOfBoundStruct();
- SpecialDetailStruct* pObjSpecialDetailFault = new SpecialDetailStruct();
- if(pObjSpecialDetailFault)
- pObjSpecialDetailFault->varString = "This bound exception is a forced limitation";
- if (pObjFault)
- {
- pObjFault->varString = "Value out of bound exception";
- pObjFault->varInt = 2;
- pObjFault->specialDetail = pObjSpecialDetailFault;
- throw pObjFault;
- }
- }
-
- if(Value0 == 1000)
- {
- SpecialDetailStruct* pObjFault = new SpecialDetailStruct();
- if(pObjFault)
- {
- pObjFault->varString = strdup("You have entered 1000 for the 1st paramter. 1000 is reserved. Please do not use it");
- throw pObjFault;
- }
- //throw AxisNormalDetailException();
- }
-
- return Value0/Value1;
-
+}
+/* This function is called by the AxisEngine when this web service
+ library is first loaded. So here we can initialize any global/static
+ data structures of this web service or open database connections */
+void MathOps::init()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is unloaded. So we can deallocate any global/static data structures
+ and close database connections etc here. */
+void MathOps::fini()
+{
+}
+xsd__int MathOps::div(xsd__int Value0, xsd__int Value1)
+{
+ return (Value0/Value1);
}
1.2 +38 -0 ws-axis/c/tests/auto_build/testcases/server/cpp/ManyTypeRefRoot.cpp
Index: ManyTypeRefRoot.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/ManyTypeRefRoot.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ManyTypeRefRoot.cpp 24 Sep 2004 13:24:10 -0000 1.1
+++ ManyTypeRefRoot.cpp 17 Mar 2005 10:54:48 -0000 1.2
@@ -0,0 +1,38 @@
+/*
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "ManyTypeRefRoot.hpp"
+
+
+ManyTypeRefRoot::ManyTypeRefRoot()
+{
+}
+
+ManyTypeRefRoot::~ManyTypeRefRoot()
+{
+}
+
+/* This function is called by the AxisEngine when something went wrong
+ with the current web service request processing. Appropriate actions should
+ be taken here.*/
+void ManyTypeRefRoot::onFault()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is first loaded. So here we can initialize any global/static
+ data structures of this web service or open database connections */
+void ManyTypeRefRoot::init()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is unloaded. So we can deallocate any global/static data structures
+ and close database connections etc here. */
+void ManyTypeRefRoot::fini()
+{
+}
+Type1_Array ManyTypeRefRoot::getInput(Type1_Array Value0)
+{
+ return Value0;
+}
1.2 +39 -0 ws-axis/c/tests/auto_build/testcases/server/cpp/LargeReturningString.cpp
Index: LargeReturningString.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/LargeReturningString.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- LargeReturningString.cpp 24 Sep 2004 13:24:10 -0000 1.1
+++ LargeReturningString.cpp 17 Mar 2005 10:54:48 -0000 1.2
@@ -0,0 +1,39 @@
+/*
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "LargeReturningString.hpp"
+
+
+LargeReturningString::LargeReturningString()
+{
+}
+
+LargeReturningString::~LargeReturningString()
+{
+}
+
+/* This function is called by the AxisEngine when something went wrong
+ with the current web service request processing. Appropriate actions should
+ be taken here.*/
+void LargeReturningString::onFault()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is first loaded. So here we can initialize any global/static
+ data structures of this web service or open database connections */
+void LargeReturningString::init()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is unloaded. So we can deallocate any global/static data structures
+ and close database connections etc here. */
+void LargeReturningString::fini()
+{
+}
+xsd__string LargeReturningString::getLargeString(xsd__int Value0)
+{
+ xsd__string ret=(xsd__string)Value0;
+ return ret;
+}
1.2 +21 -3 ws-axis/c/tests/auto_build/testcases/server/cpp/ExtensibilityQueryPortType.cpp
Index: ExtensibilityQueryPortType.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/ExtensibilityQueryPortType.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ExtensibilityQueryPortType.cpp 24 Sep 2004 13:24:10 -0000 1.1
+++ ExtensibilityQueryPortType.cpp 17 Mar 2005 10:54:48 -0000 1.2
@@ -3,7 +3,7 @@
* This file contains definitions of the web service
*/
-#include "ExtensibilityQueryPortType.h"
+#include "ExtensibilityQueryPortType.hpp"
ExtensibilityQueryPortType::ExtensibilityQueryPortType()
@@ -14,7 +14,25 @@
{
}
-AnyType* ExtensibilityQueryPortType::query(AnyType* Value0)
+/* This function is called by the AxisEngine when something went wrong
+ with the current web service request processing. Appropriate actions should
+ be taken here.*/
+void ExtensibilityQueryPortType::onFault()
{
- return Value0;
+}
+/* This function is called by the AxisEngine when this web service
+ library is first loaded. So here we can initialize any global/static
+ data structures of this web service or open database connections */
+void ExtensibilityQueryPortType::init()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is unloaded. So we can deallocate any global/static data structures
+ and close database connections etc here. */
+void ExtensibilityQueryPortType::fini()
+{
+}
+AnyType* ExtensibilityQueryPortType::query(AnyType* Value0)
+{
+ return Value0;
}
1.2 +38 -0 ws-axis/c/tests/auto_build/testcases/server/cpp/EnumerationWS.cpp
Index: EnumerationWS.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/EnumerationWS.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- EnumerationWS.cpp 24 Sep 2004 13:24:10 -0000 1.1
+++ EnumerationWS.cpp 17 Mar 2005 10:54:48 -0000 1.2
@@ -0,0 +1,38 @@
+/*
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "EnumerationWS.hpp"
+
+
+EnumerationWS::EnumerationWS()
+{
+}
+
+EnumerationWS::~EnumerationWS()
+{
+}
+
+/* This function is called by the AxisEngine when something went wrong
+ with the current web service request processing. Appropriate actions should
+ be taken here.*/
+void EnumerationWS::onFault()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is first loaded. So here we can initialize any global/static
+ data structures of this web service or open database connections */
+void EnumerationWS::init()
+{
+}
+/* This function is called by the AxisEngine when this web service
+ library is unloaded. So we can deallocate any global/static data structures
+ and close database connections etc here. */
+void EnumerationWS::fini()
+{
+}
+Type1* EnumerationWS::getInput(Type1* Value0)
+{
+ return Value0;
+}