axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r332077 - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryClient.cpp
Date Wed, 09 Nov 2005 16:28:25 GMT
Author: prestonf
Date: Wed Nov  9 08:28:22 2005
New Revision: 332077

URL: http://svn.apache.org/viewcvs?rev=332077&view=rev
Log:
Fix for UT_XSD_base64Binary test.

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

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryClient.cpp?rev=332077&r1=332076&r2=332077&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryClient.cpp
(original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryClient.cpp
Wed Nov  9 08:28:22 2005
@@ -47,7 +47,7 @@
 	    xsd__base64Binary result = ws->asNonNillableElement(input);
 		cout << "non-nillable element" << endl;
         cout << " size=" << result.__size << endl;
-        cout << " data=" << asciiToString((char *)result.__ptr) << endl;
+        cout << " data=" << asciiToStringOfLength((char *)result.__ptr, result.__size)
<< endl;
 
 		// Test nillable element, with a value
 		xsd__base64Binary* nillableInput = new xsd__base64Binary();
@@ -57,7 +57,7 @@
 		{
 			cout << "nillable element" << endl;
             cout << " size=" << nillableResult->__size << endl;
-            cout << " data=" << asciiToString((char *)nillableResult->__ptr)
<< endl;
+            cout << " data=" << asciiToStringOfLength((char *)nillableResult->__ptr,
nillableResult->__size) << endl;
             delete nillableResult;
 		}
 		else
@@ -72,7 +72,7 @@
 		{
 			cout << "nillable element=" << endl;
             cout << " size=" << nillableResult->__size << endl;
-            cout << " data=" << asciiToString((char *)nillableResult->__ptr)
<< endl;
+            cout << " data=" << asciiToStringOfLength((char *)nillableResult->__ptr,
nillableResult->__size) << endl;
 			delete nillableResult;
 		}
 		else
@@ -86,7 +86,7 @@
 		RequiredAttributeElement* requiredAttributeResult = ws->asRequiredAttribute(&requiredAttributeInput);
 		cout << "required attribute" << endl;
         cout << " size=" << requiredAttributeResult->getrequiredAttribute().__size
<< endl;
-        cout << " data=" << asciiToString((char *)requiredAttributeResult->getrequiredAttribute().__ptr)
<< endl;
+        cout << " data=" << asciiToStringOfLength((char *)requiredAttributeResult->getrequiredAttribute().__ptr,
requiredAttributeResult->getrequiredAttribute().__size) << endl;
 		delete requiredAttributeResult;
 
 /* Optional Attributes currently unsupported by WSDL2Ws
@@ -140,7 +140,7 @@
 		{
 			cout << " element[" << index << "]" << endl;
             cout << "  size=" << output[index]->__size << endl;
-            cout << "  data=" << asciiToString(*output[index]->__ptr) <<
endl;			
+            cout << "  data=" << asciiToStringOfLength(*output[index]->__ptr,
output[index]->__size) << endl;
 		}
 
         for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ )
@@ -155,7 +155,7 @@
 		SimpleComplexType* complexTypeResult = ws->asComplexType(&complexTypeInput);
 		cout << "within complex type" << endl;
         cout << " size=" << complexTypeResult->getcomplexTypeElement().__size
<< endl;
-        cout << " data=" << asciiToString((char *)complexTypeResult->getcomplexTypeElement().__ptr)
<< endl;
+        cout << " data=" << asciiToStringOfLength((char *)complexTypeResult->getcomplexTypeElement().__ptr,
complexTypeResult->getcomplexTypeElement().__size) << endl;
 		delete complexTypeResult;
 
 		// Tests now complete



Mime
View raw message