You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by pr...@apache.org on 2006/02/20 17:54:56 UTC

svn commit: r379162 - in /webservices/axis/trunk/c/tests/auto_build/testcases: client/cpp/SimpleXSDAnyClient.cpp output/SimpleXSDAny.cpp.out

Author: prestonf
Date: Mon Feb 20 08:54:09 2006
New Revision: 379162

URL: http://svn.apache.org/viewcvs?rev=379162&view=rev
Log:
Because the XML attributes may appear in any order and WAS 5 has slightly different output parameters from WAS 6, I have modified the test to look for the specific string and if it is there print something generic, otherwise print what was returned.

Modified:
    webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp
    webservices/axis/trunk/c/tests/auto_build/testcases/output/SimpleXSDAny.cpp.out

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp?rev=379162&r1=379161&r2=379162&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp Mon Feb 20 08:54:09 2006
@@ -76,7 +76,17 @@
 	xsd__string f2 = result->getfield2();
 	xsd__int f3 = result->getfield3();
 
-    cout << "Result field1 is = " << pAnyReturn->_array[0] << endl;
+	char * p = strstr( pAnyReturn->_array[0], "<mybook");
+
+	if( p && strstr( p, ">WSCC</mybook>"))
+	{
+	    cout << "Result field1 is = <mybook>WSCC</mybook>" << endl;
+	}
+	else
+	{
+	    cout << "Result field1 is = " << pAnyReturn->_array[0] << endl;
+	}
+
 	cout << "Result field2 is = " << f2 << endl;
 	cout << "Result field3 is = " << f3 << endl;
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/output/SimpleXSDAny.cpp.out
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/output/SimpleXSDAny.cpp.out?rev=379162&r1=379161&r2=379162&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/output/SimpleXSDAny.cpp.out (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/output/SimpleXSDAny.cpp.out Mon Feb 20 08:54:09 2006
@@ -1,4 +1,4 @@
-Result field1 is = <mybook xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://xsd_byte.test.apache.org" xmlns="">WSCC</mybook>
+Result field1 is = <mybook>WSCC</mybook>
 Result field2 is = WebServices
 Result field3 is = 123
 ---------------------- TEST COMPLETE -----------------------------