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:51:45 UTC

svn commit: r355073 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoice2Client.cpp

Author: cmanohar
Date: Thu Dec  8 03:51:35 2005
New Revision: 355073

URL: http://svn.apache.org/viewcvs?rev=355073&view=rev
Log:
Modified the Client to match the changes in ComplexTypeChoice2.wsdl file

Modified:
    webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoice2Client.cpp

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoice2Client.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoice2Client.cpp?rev=355073&r1=355072&r2=355073&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoice2Client.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoice2Client.cpp Thu Dec  8 03:51:35 2005
@@ -14,7 +14,7 @@
 // limitations under the License.
 
 #include <axis/AxisException.hpp>
-#include "ComplexTypeChoice.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[])
 { 
 	
-  ComplexTypeChoice *ws;
+  XSD_byte* ws;
 
   char *endpoint = WSDL_DEFAULT_ENDPOINT;
   bool endpoint_set = false;
@@ -49,13 +49,13 @@
 			try {
 	  
 					if(endpoint_set) {
-					ws = new ComplexTypeChoice(endpoint, APTHTTP1_1);
+					ws = new XSD_byte(endpoint, APTHTTP1_1);
 					free(endpoint);
 					endpoint_set = false;
 					} else
-						ws = new ComplexTypeChoice();
+						ws = new XSD_byte();
 
-					aRecord* input=new aRecord(); 
+					SimpleComplexType1* input=new SimpleComplexType1(); 
 					xsd__int* fieldone=new xsd__int();
 					*fieldone=12345;
 					input->field1=fieldone;
@@ -66,8 +66,8 @@
 					*fieldthree=65;
 					input->field3=fieldthree;
 
-					aRecord* result = NULL;
-					result = ws->myOperation(input);
+					SimpleComplexType1* result = NULL;
+					result = ws->asComplexType(input);
 					if ( result == NULL )
 						cout << "result object is null" << endl;