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 na...@apache.org on 2006/11/29 07:01:22 UTC

svn commit: r480426 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp

Author: nadiramra
Date: Tue Nov 28 22:01:21 2006
New Revision: 480426

URL: http://svn.apache.org/viewvc?view=rev&rev=480426
Log:
testcase blows up when result returned is null. Fixed it so if result is null
then result-processing is by-passed.

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

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp?view=diff&rev=480426&r1=480425&r2=480426
==============================================================================
--- 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 Tue Nov 28 22:01:21 2006
@@ -80,24 +80,26 @@
 
             if( result == NULL )
                 cout << "result object is NULL" << endl;
-
-            AnyType* pAnyReturn = result->getany1();
-            xsd__string f2 = result->getfield2();
-            xsd__int f3 = result->getfield3();
-
-            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;
+                AnyType* pAnyReturn = result->getany1();
+                xsd__string f2 = result->getfield2();
+                xsd__int f3 = result->getfield3();
+    
+                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;
             }
-
-            cout << "Result field2 is = " << f2 << endl;
-            cout << "Result field3 is = " << f3 << endl;
 
             bSuccess = true;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org