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 na...@apache.org on 2005/10/06 23:33:36 UTC

svn commit: r306901 - in /webservices/axis/trunk/c/tests/auto_build/testcases/dynamic: DynUnrefAttachmentTest/DynUnrefAttachmentTest.cpp DynamicAttachment/DynamicAttachment.cpp

Author: nadiramra
Date: Thu Oct  6 14:33:33 2005
New Revision: 306901

URL: http://svn.apache.org/viewcvs?rev=306901&view=rev
Log:
Make work on OS/400.

Modified:
    webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynUnrefAttachmentTest/DynUnrefAttachmentTest.cpp
    webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynamicAttachment/DynamicAttachment.cpp

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynUnrefAttachmentTest/DynUnrefAttachmentTest.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynUnrefAttachmentTest/DynUnrefAttachmentTest.cpp?rev=306901&r1=306900&r2=306901&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynUnrefAttachmentTest/DynUnrefAttachmentTest.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynUnrefAttachmentTest/DynUnrefAttachmentTest.cpp Thu Oct  6 14:33:33 2005
@@ -19,6 +19,7 @@
 #include <iostream>
 #include <string>
 #include <exception>
+#include "CommonClientTestCode.hpp"
 using namespace std;
 AXIS_CPP_NAMESPACE_USE 
 
@@ -46,7 +47,9 @@
 			att->addHeader(AXIS_CONTENT_TRANSFER_ENCODING,"base64");
 			
 			xsd__base64Binary b64b;
-			char *text = "This is the attachment body for the DynUnrefAttachmentTest";
+
+			char *text = stringToAscii("This is the attachment body for the DynUnrefAttachmentTest");
+
 			b64b.__ptr = (xsd__unsignedByte*)text;
 			b64b.__size = strlen(text)+1;
 			att->addBody(&b64b);	
@@ -90,7 +93,4 @@
 	cout << "----------------------------TEST COMPLETE--------------------------------" << endl;
 	return 0;
 }
-
-
-
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynamicAttachment/DynamicAttachment.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynamicAttachment/DynamicAttachment.cpp?rev=306901&r1=306900&r2=306901&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynamicAttachment/DynamicAttachment.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/dynamic/DynamicAttachment/DynamicAttachment.cpp Thu Oct  6 14:33:33 2005
@@ -19,6 +19,9 @@
 #include <iostream>
 #include <string>
 #include <exception>
+
+#include "CommonClientTestCode.hpp"
+
 using namespace std;
 AXIS_CPP_NAMESPACE_USE 
 
@@ -35,7 +38,8 @@
 		call.setOperation("put", "http://localhost/axis/DynamicAttachment");
 
 		ISoapAttachment *att = NULL;
-		char *text = "This is the attachment body for the DynamicAttachment test";
+
+		char *text = stringToAscii("This is the attachment body for the DynamicAttachment test");
 
 		///////////////////////////////////////////////////////////////////
 		// Referenced attachment with a generated content id
@@ -133,7 +137,4 @@
 	cout << "----------------------------TEST COMPLETE--------------------------------" << endl;
 	return 0;
 }
-
-
-