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 ja...@apache.org on 2006/03/09 09:32:50 UTC
svn commit: r384460 - in
/webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp:
ComplexTypeAll2.cpp ComplexTypeAllComplexChild.cpp ComplexTypeChoice1.cpp
ComplexTypeChoiceArrayChild.cpp ComplexTypeChoiceComplexChild.cpp
FaultMappingDoc.cpp
Author: jamejose
Date: Thu Mar 9 00:32:48 2006
New Revision: 384460
URL: http://svn.apache.org/viewcvs?rev=384460&view=rev
Log:
Adding missing service implementation files
Added:
webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeAll2.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeAllComplexChild.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoice1.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoiceArrayChild.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoiceComplexChild.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/FaultMappingDoc.cpp
Added: webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeAll2.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeAll2.cpp?rev=384460&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeAll2.cpp (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeAll2.cpp Thu Mar 9 00:32:48 2006
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2003-2006 The Apache Software Foundation.
+
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * 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()
+{
+}
+
+aRecord* operations::myOperation(aRecord* Value0)
+{
+ return Value0;
+}
+
Added: webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeAllComplexChild.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeAllComplexChild.cpp?rev=384460&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeAllComplexChild.cpp (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeAllComplexChild.cpp Thu Mar 9 00:32:48 2006
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2003-2006 The Apache Software Foundation.
+
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "XSD_byte.hpp"
+
+
+XSD_byte::XSD_byte()
+{
+}
+
+XSD_byte::~XSD_byte()
+{
+}
+
+/* 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 XSD_byte::onFault()
+{
+}
+
+SimpleComplexType* XSD_byte::asComplexType(SimpleComplexType* Value0)
+{
+ return Value0;
+}
+
Added: webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoice1.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoice1.cpp?rev=384460&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoice1.cpp (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoice1.cpp Thu Mar 9 00:32:48 2006
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2003-2006 The Apache Software Foundation.
+
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * 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()
+{
+}
+
+xsd__string operations::myOperation(aRecord* Value0)
+{
+ xsd__int* field1=Value0->field1;
+ xsd__string field2=Value0->field2;
+ xsd__byte* field3=Value0->field3;
+ xsd__string retValue=new char[20];
+ if(field1!=NULL)
+ sprintf(retValue,"%d",*field1);
+ if(field2!=NULL)
+ sprintf(retValue,"%s",field2);
+ if(field3!=NULL)
+ sprintf(retValue,"%d",*field3);
+ return retValue;
+}
+
Added: webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoiceArrayChild.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoiceArrayChild.cpp?rev=384460&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoiceArrayChild.cpp (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoiceArrayChild.cpp Thu Mar 9 00:32:48 2006
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2003-2006 The Apache Software Foundation.
+
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "XSD_byte.hpp"
+
+
+XSD_byte::XSD_byte()
+{
+}
+
+XSD_byte::~XSD_byte()
+{
+}
+
+/* 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 XSD_byte::onFault()
+{
+}
+
+SimpleComplexType1* XSD_byte::asComplexType(SimpleComplexType1* Value0)
+{
+ return Value0;
+}
+
Added: webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoiceComplexChild.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoiceComplexChild.cpp?rev=384460&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoiceComplexChild.cpp (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/ComplexTypeChoiceComplexChild.cpp Thu Mar 9 00:32:48 2006
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2003-2006 The Apache Software Foundation.
+
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "XSD_byte.hpp"
+
+
+XSD_byte::XSD_byte()
+{
+}
+
+XSD_byte::~XSD_byte()
+{
+}
+
+/* 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 XSD_byte::onFault()
+{
+}
+
+SimpleComplexType* XSD_byte::asComplexType(SimpleComplexType* Value0)
+{
+ return Value0;
+}
+
Added: webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/FaultMappingDoc.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/FaultMappingDoc.cpp?rev=384460&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/FaultMappingDoc.cpp (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/server/cpp/FaultMappingDoc.cpp Thu Mar 9 00:32:48 2006
@@ -0,0 +1,71 @@
+/*
+ * Copyright 2003-2006 The Apache Software Foundation.
+
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
+ * This file contains definitions of the web service
+ */
+
+#include "MathOps.hpp"
+
+
+MathOps::MathOps()
+{
+}
+
+MathOps::~MathOps()
+{
+}
+
+/* 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()
+{
+}
+
+xsd__int MathOps::div(xsd__int Value0,xsd__int Value1)
+{
+ if (Value1 == 0)
+ {
+ DivByZeroStruct* pObjFault = new DivByZeroStruct();
+ if(pObjFault)
+ {
+ pObjFault->varString = "Division by zero exception";
+ pObjFault->varInt = 1;
+ pObjFault->varFloat = (float) 10.52;
+ throw pObjFault;
+ }
+ }
+ if(Value0 < 0 || Value1 < 0) {
+ OutOfBoundStruct* pObjFault= new OutOfBoundStruct();
+ if(pObjFault)
+ {
+ pObjFault->varString = "Out of bounds exception";
+ pObjFault->varInt = 2;
+ SpecialDetailStruct * detail=new SpecialDetailStruct();
+ detail->varString="This bounds exception is a forced exception";
+ pObjFault->specialDetail=detail;
+ throw pObjFault;
+ }
+ }
+ if(Value0 == 1000) {
+ SpecialDetailStruct * detail=new SpecialDetailStruct();
+ detail->varString="You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it";
+ throw detail;
+ }
+ return Value0/Value1;
+}
+