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 cm...@apache.org on 2005/12/08 12:59:48 UTC
svn commit: r355075 - in
/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp:
ComplexTypeChoiceNestedChoiceClient.cpp
ComplexTypeChoiceNestedSequenceClient.cpp ComplexTypeChoiceSimpleClient.cpp
ComplexTypeOptionalChoiceClient.cpp
Author: cmanohar
Date: Thu Dec 8 03:59:34 2005
New Revision: 355075
URL: http://svn.apache.org/viewcvs?rev=355075&view=rev
Log:
Make changes in clients to match the changes in wsdl files
Modified:
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedChoiceClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedSequenceClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceSimpleClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeOptionalChoiceClient.cpp
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedChoiceClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedChoiceClient.cpp?rev=355075&r1=355074&r2=355075&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedChoiceClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedChoiceClient.cpp Thu Dec 8 03:59:34 2005
@@ -14,7 +14,7 @@
// limitations under the License.
#include <axis/AxisException.hpp>
-#include "operations.hpp"
+#include "XSD_byte.hpp"
#include <stdlib.h> // For malloc(), calloc(), strdup() and free()
#include <iostream>
@@ -33,7 +33,7 @@
int main(int argc, char* argv[])
{
- operations *ws;
+ XSD_byte *ws;
char *endpoint = WSDL_DEFAULT_ENDPOINT;
bool endpoint_set = false;
@@ -49,21 +49,21 @@
try {
if(endpoint_set) {
- ws = new operations(endpoint, APTHTTP1_1);
+ ws = new XSD_byte(endpoint, APTHTTP1_1);
free(endpoint);
endpoint_set = false;
} else
- ws = new operations();
+ ws = new XSD_byte();
- aRecord* input=new aRecord();
+ SimpleComplexType1* input=new SimpleComplexType1();
input->field1 = "hello";
input->field2 = "world";
input->field3 = "I am still here!";
input->field4 = "Bye";
- aRecord* result = NULL;
- result = ws->myOperation(input);
+ SimpleComplexType1* result = NULL;
+ result = ws->asComplexType(input);
if ( result == NULL )
cout << "result object is null" << endl;
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedSequenceClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedSequenceClient.cpp?rev=355075&r1=355074&r2=355075&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedSequenceClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedSequenceClient.cpp Thu Dec 8 03:59:34 2005
@@ -14,7 +14,7 @@
// limitations under the License.
#include <axis/AxisException.hpp>
-#include "operations.hpp"
+#include "XSD_byte.hpp"
#include <stdlib.h> // For malloc(), calloc(), strdup() and free()
#include <iostream>
@@ -33,7 +33,7 @@
int main(int argc, char* argv[])
{
- operations *ws;
+ XSD_byte *ws;
char *endpoint = WSDL_DEFAULT_ENDPOINT;
bool endpoint_set = false;
@@ -49,29 +49,29 @@
try {
if(endpoint_set) {
- ws = new operations(endpoint, APTHTTP1_1);
+ ws = new XSD_byte(endpoint, APTHTTP1_1);
free(endpoint);
endpoint_set = false;
} else
- ws = new operations();
+ ws = new XSD_byte();
- aRecord* input=new aRecord();
+ SimpleComplexType1* input=new SimpleComplexType1();
input->field1 = "hello";
input->field2 = "world";
-
input->field3 = "I am still here!";
- input->field4 = "Bye";
+
- aRecord* result = NULL;
- result = ws->myOperation(input);
+ SimpleComplexType1* result = NULL;
+ result = ws->asComplexType(input);
if ( result == NULL )
cout << "result object is null" << endl;
cout << "Result field1 is = " << result->field1 << endl;
cout << "Result field2 is = " << result->field2 << endl;
cout << "Result field3 is = " << result->field3 << endl;
+
bSuccess = true;
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceSimpleClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceSimpleClient.cpp?rev=355075&r1=355074&r2=355075&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceSimpleClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceSimpleClient.cpp Thu Dec 8 03:59:34 2005
@@ -14,7 +14,7 @@
// limitations under the License.
#include <axis/AxisException.hpp>
-#include "operations.hpp"
+#include "XSD_byte.hpp"
#include <stdlib.h> // For malloc(), calloc(), strdup() and free()
#include <iostream>
@@ -33,7 +33,7 @@
int main(int argc, char* argv[])
{
- operations *ws;
+ XSD_byte *ws;
char *endpoint = WSDL_DEFAULT_ENDPOINT;
bool endpoint_set = false;
@@ -49,24 +49,24 @@
try {
if(endpoint_set) {
- ws = new operations(endpoint, APTHTTP1_1);
+ ws = new XSD_byte(endpoint, APTHTTP1_1);
free(endpoint);
endpoint_set = false;
} else
- ws = new operations();
+ ws = new XSD_byte();
- aRecord* input=new aRecord();
+ SimpleComplexType1* input=new SimpleComplexType1();
xsd__int* fieldone=new xsd__int();
*fieldone=12345;
input->field1=fieldone;
- aRecord* result = NULL;
- result = ws->myOperation(input);
+ SimpleComplexType1* result = NULL;
+ result = ws->asComplexType(input);
if ( result == NULL )
cout << "result object is null" << endl;
- cout << "Result field1 is = " << *(result->field1) << endl;
+ cout << "Result is = " << *(result->field1) << endl;
bSuccess = true;
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeOptionalChoiceClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeOptionalChoiceClient.cpp?rev=355075&r1=355074&r2=355075&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeOptionalChoiceClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeOptionalChoiceClient.cpp Thu Dec 8 03:59:34 2005
@@ -14,7 +14,7 @@
// limitations under the License.
#include <axis/AxisException.hpp>
-#include "operations.hpp"
+#include "XSD_byte.hpp"
#include <stdlib.h> // For malloc(), calloc(), strdup() and free()
#include <iostream>
@@ -32,7 +32,7 @@
int main(int argc, char* argv[])
{
- operations *ws;
+ XSD_byte *ws;
char *endpoint = WSDL_DEFAULT_ENDPOINT;
bool endpoint_set = false;
@@ -47,18 +47,18 @@
{
try {
if(endpoint_set) {
- ws = new operations(endpoint, APTHTTP1_1);
+ ws = new XSD_byte(endpoint, APTHTTP1_1);
free(endpoint);
endpoint_set = false;
} else
- ws = new operations();
+ ws = new XSD_byte();
- aRecord* input = new aRecord();
+ SimpleComplexType1* input = new SimpleComplexType1();
input->field1 = "Hello World!";
input->field2 = "I'm still here!";
input->field3 = "Now I go!";
- aRecord* result = NULL;
- result = ws->myOperation(input);
+ SimpleComplexType1* result = NULL;
+ result = ws->asComplexType(input);
if ( result == NULL )
cout << "result object is null" << endl;