ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r397747 [13/17] - /webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/
Date Fri, 28 Apr 2006 03:04:04 GMT
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ValidXMLCharIsInterpretedAsCPPCommandClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ValidXMLCharIsInterpretedAsCPPCommandClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ValidXMLCharIsInterpretedAsCPPCommandClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ValidXMLCharIsInterpretedAsCPPCommandClient.cpp Thu Apr 27 20:03:51 2006
@@ -18,35 +18,35 @@
 
 int main( int argc, char * argv[])
 {
-	bool	bSuccess = false;
-	int		iRetryIterationCount = 3;
+        bool    bSuccess = false;
+        int             iRetryIterationCount = 3;
 
-	do
-	{
-		try
-		{
-			const char *	pszURL = "http://localhost:9090/axis/ValidXMLCharIsInterpretedAsCPPCommand";
+        do
+        {
+                try
+                {
+                        const char *    pszURL = "http://localhost:9090/axis/ValidXMLCharIsInterpretedAsCPPCommand";
 
-			pszURL = argv[1];
+                        pszURL = argv[1];
 
-			ValidXMLCharIsInterpretedAsCPPCommand *	pWS = new ValidXMLCharIsInterpretedAsCPPCommand( pszURL, APTHTTP1_1);
-			test1Punctuation *						pTest1Punctuation = new test1Punctuation();
-//			test2Logical *							pTest2Logical = new test2Logical();
-//			test3Mathematical *						pTest3Mathematical = new test3Mathematical();
-//			test4Miscellaneous *					pTest4Miscellaneous = new test4Miscellaneous();
+                        ValidXMLCharIsInterpretedAsCPPCommand * pWS = new ValidXMLCharIsInterpretedAsCPPCommand( pszURL, APTHTTP1_1);
+                        test1Punctuation *                                              pTest1Punctuation = new test1Punctuation();
+//                      test2Logical *                                                  pTest2Logical = new test2Logical();
+//                      test3Mathematical *                                             pTest3Mathematical = new test3Mathematical();
+//                      test4Miscellaneous *                                    pTest4Miscellaneous = new test4Miscellaneous();
 
-			pTest1Punctuation->setarg_WithADot( 1);
-			pTest1Punctuation->setarg_WithAnUnderscore( 2);
-			pTest1Punctuation->setarg_WithAHyphen( 3);
-			pTest1Punctuation->setarg_WithAColon( 4);
+                        pTest1Punctuation->setarg_WithADot( 1);
+                        pTest1Punctuation->setarg_WithAnUnderscore( 2);
+                        pTest1Punctuation->setarg_WithAHyphen( 3);
+                        pTest1Punctuation->setarg_WithAColon( 4);
             pTest1Punctuation->setarg__WithTwoUnderscores( 5);
             pTest1Punctuation->setarg_With_TwoDots( 6);
             pTest1Punctuation->setarg__WithTwoDotsInline( 7);
            
-//			pTest1Punctuation->setarg_name5( 5);
+//                      pTest1Punctuation->setarg_name5( 5);
 
-            cout <<"About to invoke test1"<<endl;			
-			xsd__int iResult1 = pWS->test1( pTest1Punctuation);
+            cout <<"About to invoke test1"<<endl;                       
+                        xsd__int iResult1 = pWS->test1( pTest1Punctuation);
             if( iResult1 == 1 + 2 + 3 + 4 + 5+6+7)
             {
               cout <<"Got result from test1 "<<iResult1<<endl;
@@ -70,94 +70,94 @@
               cout << "Results should have been 1+2+3+4+5+6+7="<<(1+2+3+4+5+6+7)<<" but was "<<iResult1<<endl;
             }
 
-/*			if( iResult1 == 1 + 2 + 3 + 4 + 5)
-			{
-				pTest2Logical->setarg_name1( 6);
-
-				xsd__int iResult2 = pWS->test2( pTest2Logical);
-
-				if( iResult2 == 6)
-				{
-					pTest3Mathematical->setarg_name1( 7);
-					pTest3Mathematical->setarg_name2( 8);
-					pTest3Mathematical->setarg_name3( 9);
-					pTest3Mathematical->setarg_name4( 10);
-					pTest3Mathematical->setarg_name5( 11);
-					pTest3Mathematical->setarg_name6( 12);
-
-					xsd__int iResult3 = pWS->test3( pTest3Mathematical);
-
-					if( iResult3 == 7 + 8 + 9 + 10 + 11 + 12)
-					{
-						pTest4Miscellaneous->setarg_name1_( 13);
-						pTest4Miscellaneous->setarg_name2_( 14);
-						pTest4Miscellaneous->setarg_name3_( 15);
-						pTest4Miscellaneous->setarg_name4( 16);
-						pTest4Miscellaneous->setarg_name5( 17);
-						pTest4Miscellaneous->setarg_name6( 18);
+/*                      if( iResult1 == 1 + 2 + 3 + 4 + 5)
+                        {
+                                pTest2Logical->setarg_name1( 6);
+
+                                xsd__int iResult2 = pWS->test2( pTest2Logical);
+
+                                if( iResult2 == 6)
+                                {
+                                        pTest3Mathematical->setarg_name1( 7);
+                                        pTest3Mathematical->setarg_name2( 8);
+                                        pTest3Mathematical->setarg_name3( 9);
+                                        pTest3Mathematical->setarg_name4( 10);
+                                        pTest3Mathematical->setarg_name5( 11);
+                                        pTest3Mathematical->setarg_name6( 12);
+
+                                        xsd__int iResult3 = pWS->test3( pTest3Mathematical);
+
+                                        if( iResult3 == 7 + 8 + 9 + 10 + 11 + 12)
+                                        {
+                                                pTest4Miscellaneous->setarg_name1_( 13);
+                                                pTest4Miscellaneous->setarg_name2_( 14);
+                                                pTest4Miscellaneous->setarg_name3_( 15);
+                                                pTest4Miscellaneous->setarg_name4( 16);
+                                                pTest4Miscellaneous->setarg_name5( 17);
+                                                pTest4Miscellaneous->setarg_name6( 18);
 
-						xsd__int iResult4 = pWS->test4( pTest4Miscellaneous);
+                                                xsd__int iResult4 = pWS->test4( pTest4Miscellaneous);
 
-						if( iResult4 == 13 + 14 + 15 + 16 + 17 + 18)
-						{
-							bSuccess = true;
-						}
-					}
-				}
-			}
-	*/		
-			if( !bSuccess)
-			{
-				cout << "Unexpected result." << endl;
-			}
+                                                if( iResult4 == 13 + 14 + 15 + 16 + 17 + 18)
+                                                {
+                                                        bSuccess = true;
+                                                }
+                                        }
+                                }
+                        }
+        */              
+                        if( !bSuccess)
+                        {
+                                cout << "Unexpected result." << endl;
+                        }
 
-			delete pTest1Punctuation;
-//			delete pTest2Logical;
-//			delete pTest3Mathematical;
-//			delete pTest4Miscellaneous;
+                        delete pTest1Punctuation;
+//                      delete pTest2Logical;
+//                      delete pTest3Mathematical;
+//                      delete pTest4Miscellaneous;
 
-			delete pWS;
-		}
-		catch( AxisException& e)
-		{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
-
-			if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-		}
-		catch( exception& e)
-		{
-			cout << "Unknown exception has occured : " << e.what() << endl;
-		}
-		catch(...)
-		{
-			cout << "Unknown exception has occured" << endl;
-		}
-
-		iRetryIterationCount--;
-	} while( iRetryIterationCount > 0 && !bSuccess);
-
-	if( bSuccess)
-	{
-		cout << "---------------------- TEST COMPLETED SUCCESSFULLY -----------------------------" << endl;
-	}
-	else
-	{
-		cout << "---------------------- TEST DID NOT COMPLETE -----------------------------" << endl;
-	}
-	return 0;
+                        delete pWS;
+                }
+                catch( AxisException& e)
+                {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
+
+                        if( !bSilent)
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+                }
+                catch( exception& e)
+                {
+                        cout << "Unknown exception has occured : " << e.what() << endl;
+                }
+                catch(...)
+                {
+                        cout << "Unknown exception has occured" << endl;
+                }
+
+                iRetryIterationCount--;
+        } while( iRetryIterationCount > 0 && !bSuccess);
+
+        if( bSuccess)
+        {
+                cout << "---------------------- TEST COMPLETED SUCCESSFULLY -----------------------------" << endl;
+        }
+        else
+        {
+                cout << "---------------------- TEST DID NOT COMPLETE -----------------------------" << endl;
+        }
+        return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDAnyClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDAnyClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDAnyClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDAnyClient.cpp Thu Apr 27 20:03:51 2006
@@ -42,11 +42,11 @@
 
   endpoint_set = parse_args_for_endpoint(&argc, argv, &endpoint);
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
+                do
+                {
   try {
     if(endpoint_set) {
       ws = new OrderManager(endpoint, APTHTTP1_1);
@@ -55,34 +55,34 @@
 //else
      // ws = new OrderManager();
 
-	Order* order = ws->getOrder("whatever");
-	int outputSize = 0;
-	LineItem* lineitemarray = (LineItem*)(order->lineItems->get(outputSize)[0]);
-	cout << "lineitem number =" << lineitemarray->getitemNumber()<< endl ;
-	cout << "lineitem description =" << lineitemarray->getitemDesc()<< endl ;
+        Order* order = ws->getOrder("whatever");
+        int outputSize = 0;
+        LineItem* lineitemarray = (LineItem*)(order->lineItems->get(outputSize)[0]);
+        cout << "lineitem number =" << lineitemarray->getitemNumber()<< endl ;
+        cout << "lineitem description =" << lineitemarray->getitemDesc()<< endl ;
 
-	delete ws; 
-}	
+        delete ws; 
+}       
 
   } catch(AxisException &e) {
-			bool bSilent = false;
+                        bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
+                        {
     cout << e.what() << endl;
-			}
+                        }
   } catch(...) {
     cout << "Unknown Exception occured." << endl;
   }
@@ -90,18 +90,18 @@
   // Samisa : clean up memory allocated for stub
    /* try
   {
-	  delete ws; 
+          delete ws; 
   }
   catch(exception& exception)
   {
-  	cout << "Exception on clean up of ws : " << exception.what()<<endl;
+        cout << "Exception on clean up of ws : " << exception.what()<<endl;
   }
   catch(...)
   {
-  	cout << "Unknown exception on clean up of ws : " << endl;
+        cout << "Unknown exception on clean up of ws : " << endl;
   } */ 
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
     if(endpoint_set)
       free(endpoint);
   cout << "---------------------- TEST COMPLETE -----------------------------"<< endl;

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDAttributeClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDAttributeClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDAttributeClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDAttributeClient.cpp Thu Apr 27 20:03:51 2006
@@ -22,57 +22,57 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/Calculator";
-	char dateTime[50];
-
-	BooleanType* booleanType = new BooleanType();
-	BooleanType* booleanTypeReturn = NULL;
-	ByteType* byteType = new ByteType();
-	ByteType* byteTypeReturn = NULL;
-	UnsignedByteType* unsignedByteType = new UnsignedByteType();
-	UnsignedByteType* unsignedByteTypeReturn = NULL;
-	ShortType* shortType = new ShortType();
-	ShortType* shortTypeReturn = NULL;
-	UnsignedShortType* unsignedShortType = new UnsignedShortType();
-	UnsignedShortType* unsignedShortTypeReturn = NULL;
-	IntType* intType = new IntType();
-	IntType* intTypeReturn = NULL;
-	UnsignedIntType* unsignedIntType = new UnsignedIntType();
-	UnsignedIntType* unsignedIntTypeReturn = NULL;
-	LongType* longType = new LongType();
-	LongType* longTypeReturn = NULL;
-	UnsignedLongType* unsignedLongType = new UnsignedLongType();
-	UnsignedLongType* unsignedLongTypeReturn = NULL;
-	FloatType* floatType = new FloatType();
-	FloatType* floatTypeReturn = NULL;
-	DoubleType* doubleType = new DoubleType();
-	DoubleType* doubleTypeReturn = NULL;
-	StringType* stringType = new StringType();
-	StringType* stringTypeReturn = NULL;
-
-	DateTimeType* dtt = new DateTimeType();
-	DateTimeType* dttReturn = NULL;
-	DateType* dt = new DateType();
-	DateType* dtReturn = NULL;
-	TimeType* tt = new TimeType();
-	TimeType* ttReturn = NULL;
-	IntegerType* integerType = new IntegerType();
-	IntegerType* integerTypeReturn = NULL;
-	DecimalType* decimalType = new DecimalType();
-	DecimalType* decimalTypeReturn = NULL;
-	Base64BinaryType* b64Type = new Base64BinaryType();
-	Base64BinaryType* b64TypeReturn = NULL;
-	HexBinaryType* hexType = new HexBinaryType();
-	HexBinaryType* hexTypeReturn = NULL;
-	QNameType* qnameType = new QNameType();
-	QNameType* qnameTypeReturn = NULL;
-	AnyURIType* anyURI = new AnyURIType();
-	AnyURIType* anyURIReturn = NULL;
-
-	xsd__base64Binary b64Test;
-	xsd__hexBinary hexTest;
-	xsd__unsignedByte* testUB = (xsd__unsignedByte*)"<test><xml>some dod&y string</xml></test>";
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        char dateTime[50];
+
+        BooleanType* booleanType = new BooleanType();
+        BooleanType* booleanTypeReturn = NULL;
+        ByteType* byteType = new ByteType();
+        ByteType* byteTypeReturn = NULL;
+        UnsignedByteType* unsignedByteType = new UnsignedByteType();
+        UnsignedByteType* unsignedByteTypeReturn = NULL;
+        ShortType* shortType = new ShortType();
+        ShortType* shortTypeReturn = NULL;
+        UnsignedShortType* unsignedShortType = new UnsignedShortType();
+        UnsignedShortType* unsignedShortTypeReturn = NULL;
+        IntType* intType = new IntType();
+        IntType* intTypeReturn = NULL;
+        UnsignedIntType* unsignedIntType = new UnsignedIntType();
+        UnsignedIntType* unsignedIntTypeReturn = NULL;
+        LongType* longType = new LongType();
+        LongType* longTypeReturn = NULL;
+        UnsignedLongType* unsignedLongType = new UnsignedLongType();
+        UnsignedLongType* unsignedLongTypeReturn = NULL;
+        FloatType* floatType = new FloatType();
+        FloatType* floatTypeReturn = NULL;
+        DoubleType* doubleType = new DoubleType();
+        DoubleType* doubleTypeReturn = NULL;
+        StringType* stringType = new StringType();
+        StringType* stringTypeReturn = NULL;
+
+        DateTimeType* dtt = new DateTimeType();
+        DateTimeType* dttReturn = NULL;
+        DateType* dt = new DateType();
+        DateType* dtReturn = NULL;
+        TimeType* tt = new TimeType();
+        TimeType* ttReturn = NULL;
+        IntegerType* integerType = new IntegerType();
+        IntegerType* integerTypeReturn = NULL;
+        DecimalType* decimalType = new DecimalType();
+        DecimalType* decimalTypeReturn = NULL;
+        Base64BinaryType* b64Type = new Base64BinaryType();
+        Base64BinaryType* b64TypeReturn = NULL;
+        HexBinaryType* hexType = new HexBinaryType();
+        HexBinaryType* hexTypeReturn = NULL;
+        QNameType* qnameType = new QNameType();
+        QNameType* qnameTypeReturn = NULL;
+        AnyURIType* anyURI = new AnyURIType();
+        AnyURIType* anyURIReturn = NULL;
+
+        xsd__base64Binary b64Test;
+        xsd__hexBinary hexTest;
+        xsd__unsignedByte* testUB = (xsd__unsignedByte*)"<test><xml>some dod&y string</xml></test>";
 
     b64Test.set(testUB, 41);
     hexTest.set(testUB, 41);
@@ -84,147 +84,147 @@
     memcpy(&testDate, temp, sizeof(xsd__date));
 
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-
-		XSDAttribute* ws = new XSDAttribute(endpoint);
-
-		booleanType->booleanType = (xsd__boolean)0;
-		booleanTypeReturn = ws->getDataBoolean(booleanType);
-		cout << "boolean=" << booleanTypeReturn->booleanType << endl;
-
-		byteType->byteType = (xsd__byte)31;
-		byteTypeReturn = ws->getDataByte(byteType);
-		printf("byte=%d\n", byteTypeReturn->byteType); fflush(stdout);
-
-		unsignedByteType->unsignedByteType = (xsd__unsignedByte)32;
-		unsignedByteTypeReturn = ws->getDataUnsignedByte(unsignedByteType);
-		printf("unsigned byte=%d\n", unsignedByteTypeReturn->unsignedByteType); fflush(stdout);
-
-		shortType->shortType = 7;
-		shortTypeReturn = ws->getDataShort(shortType);
-		cout << "short=" << shortTypeReturn->shortType << endl;
-
-		unsignedShortType->unsignedShortType = (xsd__unsignedShort)14;
-		unsignedShortTypeReturn = ws->getDataUnsignedShort(unsignedShortType);
-		cout << "unsigned short=" << unsignedShortTypeReturn->unsignedShortType << endl;
-
-		intType->intType = (xsd__int)21;
-		intTypeReturn = ws->getDataInt(intType);
-		cout << "int=" << intTypeReturn->intType << endl;
-
-		unsignedIntType->unsignedIntType = (xsd__unsignedInt)28;
-		unsignedIntTypeReturn = ws->getDataUnsignedInt(unsignedIntType);
-		cout << "unsigned int=" << unsignedIntTypeReturn->unsignedIntType << endl;
-
-		longType->longType = (xsd__long)35;
-		longTypeReturn = ws->getDataLong(longType);
-		cout << "long=" << (int)(longTypeReturn->longType) << endl;
-
-		unsignedLongType->unsignedLongType = (xsd__unsignedLong)42;
-		unsignedLongTypeReturn = ws->getDataUnsignedLong(unsignedLongType);
-		cout << "unsigned long=" << unsignedLongTypeReturn->unsignedLongType << endl;
-
-		floatType->floatType = (xsd__float)70.3535888888;
-		floatTypeReturn = ws->getDataFloat(floatType);
-		printf("float=%.5f\n", floatTypeReturn->floatType); fflush(stdout);
-
-		doubleType->doubleType = (xsd__double)140.7175888888;
-		doubleTypeReturn = ws->getDataDouble(doubleType);
-		printf("double=%.5f\n", doubleTypeReturn->doubleType); fflush(stdout);
-
-		stringType->stringType = (xsd__string) "never odd or even";
-		stringTypeReturn = ws->getDataString(stringType);
-		cout << "string=" << stringTypeReturn->stringType << endl;
-
-		integerType->integerType = (xsd__integer) 919191919;
-		integerTypeReturn = ws->getDataInteger(integerType);
-		cout << "integer=" << (int)(integerTypeReturn->integerType) << endl;
-
-		decimalType->decimalType = (xsd__decimal)929292929.5555555555555;
-		decimalTypeReturn = ws->getDataDecimal(decimalType);
-		printf("decimal=%.5f\n", decimalTypeReturn->decimalType); fflush(stdout);
-
-		dtt->dateTimeType = testDate;
-		dttReturn = ws->getDataDateTime(dtt);
-		strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", &dttReturn->dateTimeType);
-		cout << "dateTime=" << dateTime << endl;
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+
+                XSDAttribute* ws = new XSDAttribute(endpoint);
+
+                booleanType->booleanType = (xsd__boolean)0;
+                booleanTypeReturn = ws->getDataBoolean(booleanType);
+                cout << "boolean=" << booleanTypeReturn->booleanType << endl;
+
+                byteType->byteType = (xsd__byte)31;
+                byteTypeReturn = ws->getDataByte(byteType);
+                printf("byte=%d\n", byteTypeReturn->byteType); fflush(stdout);
+
+                unsignedByteType->unsignedByteType = (xsd__unsignedByte)32;
+                unsignedByteTypeReturn = ws->getDataUnsignedByte(unsignedByteType);
+                printf("unsigned byte=%d\n", unsignedByteTypeReturn->unsignedByteType); fflush(stdout);
+
+                shortType->shortType = 7;
+                shortTypeReturn = ws->getDataShort(shortType);
+                cout << "short=" << shortTypeReturn->shortType << endl;
+
+                unsignedShortType->unsignedShortType = (xsd__unsignedShort)14;
+                unsignedShortTypeReturn = ws->getDataUnsignedShort(unsignedShortType);
+                cout << "unsigned short=" << unsignedShortTypeReturn->unsignedShortType << endl;
+
+                intType->intType = (xsd__int)21;
+                intTypeReturn = ws->getDataInt(intType);
+                cout << "int=" << intTypeReturn->intType << endl;
+
+                unsignedIntType->unsignedIntType = (xsd__unsignedInt)28;
+                unsignedIntTypeReturn = ws->getDataUnsignedInt(unsignedIntType);
+                cout << "unsigned int=" << unsignedIntTypeReturn->unsignedIntType << endl;
+
+                longType->longType = (xsd__long)35;
+                longTypeReturn = ws->getDataLong(longType);
+                cout << "long=" << (int)(longTypeReturn->longType) << endl;
+
+                unsignedLongType->unsignedLongType = (xsd__unsignedLong)42;
+                unsignedLongTypeReturn = ws->getDataUnsignedLong(unsignedLongType);
+                cout << "unsigned long=" << unsignedLongTypeReturn->unsignedLongType << endl;
+
+                floatType->floatType = (xsd__float)70.3535888888;
+                floatTypeReturn = ws->getDataFloat(floatType);
+                printf("float=%.5f\n", floatTypeReturn->floatType); fflush(stdout);
+
+                doubleType->doubleType = (xsd__double)140.7175888888;
+                doubleTypeReturn = ws->getDataDouble(doubleType);
+                printf("double=%.5f\n", doubleTypeReturn->doubleType); fflush(stdout);
+
+                stringType->stringType = (xsd__string) "never odd or even";
+                stringTypeReturn = ws->getDataString(stringType);
+                cout << "string=" << stringTypeReturn->stringType << endl;
+
+                integerType->integerType = (xsd__integer) 919191919;
+                integerTypeReturn = ws->getDataInteger(integerType);
+                cout << "integer=" << (int)(integerTypeReturn->integerType) << endl;
+
+                decimalType->decimalType = (xsd__decimal)929292929.5555555555555;
+                decimalTypeReturn = ws->getDataDecimal(decimalType);
+                printf("decimal=%.5f\n", decimalTypeReturn->decimalType); fflush(stdout);
+
+                dtt->dateTimeType = testDate;
+                dttReturn = ws->getDataDateTime(dtt);
+                strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", &dttReturn->dateTimeType);
+                cout << "dateTime=" << dateTime << endl;
 
 /* Awaiting Server side implementation
-		dt->dateType = testDate;
-		dtReturn = ws->getDataDate(dt);
-		strftime(dateTime, 50, "%a %b %d %Y", &dtReturn->dateType);
-		cout << "date=" << dateTime << endl;
-
-		tt->timeType = testDate;
-		ttReturn = ws->getDataTime(tt);
-		strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", &ttReturn->timeType);
-		cout << "time=" << dateTime << endl;
+                dt->dateType = testDate;
+                dtReturn = ws->getDataDate(dt);
+                strftime(dateTime, 50, "%a %b %d %Y", &dtReturn->dateType);
+                cout << "date=" << dateTime << endl;
+
+                tt->timeType = testDate;
+                ttReturn = ws->getDataTime(tt);
+                strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", &ttReturn->timeType);
+                cout << "time=" << dateTime << endl;
 
-		b64Type->base64BinaryType = b64Test;
-		b64TypeReturn = ws->getDataBase64Binary(b64Type);
+                b64Type->base64BinaryType = b64Test;
+                b64TypeReturn = ws->getDataBase64Binary(b64Type);
         int size = 0;
         const xsd__unsignedByte * base64BinaryData = b64TypeReturn->base64BinaryType.get(size);
-		cout << "base64Binary size=" << size << endl;
-		if( size > 0)
-		{
-			cout << "base64Binary data=" << base64BinaryData << endl;
-		}
+                cout << "base64Binary size=" << size << endl;
+                if( size > 0)
+                {
+                        cout << "base64Binary data=" << base64BinaryData << endl;
+                }
 
-		hexType->hexBinaryType = hexTest;
-		hexTypeReturn = ws->getDataHexBinary(hexType);
+                hexType->hexBinaryType = hexTest;
+                hexTypeReturn = ws->getDataHexBinary(hexType);
         size = 0;
         const xsd__unsignedByte * hexBinaryData = hexTypeReturn->hexBinaryType.get(size);
-		cout << "hexBinary size=" << size << endl;
-		if( size > 0)
-		{
-			cout << "hexBinary data=" << hexBinaryData << endl;
-		}
+                cout << "hexBinary size=" << size << endl;
+                if( size > 0)
+                {
+                        cout << "hexBinary data=" << hexBinaryData << endl;
+                }
 */
-		bSuccess = true;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                bSuccess = true;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << e.what() << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << e.what() << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
   cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+        
+        return 0;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp Thu Apr 27 20:03:51 2006
@@ -48,39 +48,39 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/Calculator";
-	char dateTime[50];
-
-	xsd__boolean boolResult=(xsd__boolean)1;
-	xsd__byte bResult=(xsd__byte)0;
-	xsd__unsignedByte ubResult=(xsd__unsignedByte)0;
-	xsd__short sResult=(xsd__short)0;
-	xsd__unsignedShort usResult=(xsd__unsignedShort)0;
-	xsd__int iResult=(xsd__int)0;
-	xsd__unsignedInt uiResult=(xsd__unsignedInt)0;
-	xsd__long lResult=(xsd__long)0;
-	xsd__unsignedLong ulResult=(xsd__unsignedLong)0;
-	xsd__float fResult=(xsd__float)0;
-	xsd__double dResult=(xsd__double)0;
-	xsd__date dateResult;			// typedef of struct tm
-	xsd__dateTime dateTimeResult;	// typedef of struct tm
-	xsd__time timeResult;			// typedef of struct tm
-	xsd__duration durationResult = (xsd__duration) 0;
-	xsd__string strResult=(xsd__string)0;
-	xsd__integer intResult=(xsd__integer)0;
-	xsd__decimal decResult=(xsd__decimal)0;
-	xsd__base64Binary b64Result;
-	xsd__hexBinary hexResult;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        char dateTime[50];
+
+        xsd__boolean boolResult=(xsd__boolean)1;
+        xsd__byte bResult=(xsd__byte)0;
+        xsd__unsignedByte ubResult=(xsd__unsignedByte)0;
+        xsd__short sResult=(xsd__short)0;
+        xsd__unsignedShort usResult=(xsd__unsignedShort)0;
+        xsd__int iResult=(xsd__int)0;
+        xsd__unsignedInt uiResult=(xsd__unsignedInt)0;
+        xsd__long lResult=(xsd__long)0;
+        xsd__unsignedLong ulResult=(xsd__unsignedLong)0;
+        xsd__float fResult=(xsd__float)0;
+        xsd__double dResult=(xsd__double)0;
+        xsd__date dateResult;                   // typedef of struct tm
+        xsd__dateTime dateTimeResult;   // typedef of struct tm
+        xsd__time timeResult;                   // typedef of struct tm
+        xsd__duration durationResult = (xsd__duration) 0;
+        xsd__string strResult=(xsd__string)0;
+        xsd__integer intResult=(xsd__integer)0;
+        xsd__decimal decResult=(xsd__decimal)0;
+        xsd__base64Binary b64Result;
+        xsd__hexBinary hexResult;
 
-	xsd__base64Binary b64Test;
-	xsd__hexBinary hexTest;
+        xsd__base64Binary b64Test;
+        xsd__hexBinary hexTest;
 
-	//xsd__unsignedByte* testUB = (xsd__unsignedByte*)"never odd or even";
+        //xsd__unsignedByte* testUB = (xsd__unsignedByte*)"never odd or even";
 
-	xsd__unsignedByte* testUB = (xsd__unsignedByte*)stringToAscii("<test><xml>some dod&y string</xml></test>");
+        xsd__unsignedByte* testUB = (xsd__unsignedByte*)stringToAscii("<test><xml>some dod&y string</xml></test>");
 
-	b64Test.set(testUB, 41);
+        b64Test.set(testUB, 41);
     hexTest.set(testUB, 41);
 
     time_t timeToTest;
@@ -89,39 +89,39 @@
     xsd__date testDate;
     memcpy(&testDate, temp, sizeof(xsd__date));
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		XSDElement* ws = new XSDElement(endpoint);
-
-		boolResult = ws->setGetDataBoolean((xsd__boolean)1);
-		cout << "bool=" << boolResult << endl;
-
-		bResult = ws->setGetDataByte(31);
-		printf("byte=%d\n", bResult);
-		ubResult = ws->setGetDataUnsignedByte(32);
-		printf("unsigned byte=%d\n", ubResult);
-
-		sResult = ws->setGetDataShort(7);
-		printf("short=%d\n", sResult);
-		usResult = ws->setGetDataUnsignedShort(14);
-		printf("unsigned short=%d\n", usResult);
-
-		iResult = ws->setGetDataInt(21);
-		printf("int=%d\n", iResult);
-		uiResult = ws->setGetDataUnsignedInt(28);
-		printf("unsigned int=%d\n", uiResult);fflush(stdout);
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                XSDElement* ws = new XSDElement(endpoint);
+
+                boolResult = ws->setGetDataBoolean((xsd__boolean)1);
+                cout << "bool=" << boolResult << endl;
 
-		lResult = ws->setGetDataLong((xsd__long)35);
-	    cout << "long=" << lResult << endl;
+                bResult = ws->setGetDataByte(31);
+                printf("byte=%d\n", bResult);
+                ubResult = ws->setGetDataUnsignedByte(32);
+                printf("unsigned byte=%d\n", ubResult);
+
+                sResult = ws->setGetDataShort(7);
+                printf("short=%d\n", sResult);
+                usResult = ws->setGetDataUnsignedShort(14);
+                printf("unsigned short=%d\n", usResult);
+
+                iResult = ws->setGetDataInt(21);
+                printf("int=%d\n", iResult);
+                uiResult = ws->setGetDataUnsignedInt(28);
+                printf("unsigned int=%d\n", uiResult);fflush(stdout);
+
+                lResult = ws->setGetDataLong((xsd__long)35);
+            cout << "long=" << lResult << endl;
 #ifdef WIN32
         xsd__long longInput     =  10000000000I64;
         xsd__long longMaxInput  =  9223372036854775807I64;
@@ -138,36 +138,36 @@
         lResult = ws->setGetDataLong((xsd__long) longMinInput);
         cout << "MinInclusive long=" << lResult << endl;
 
-		ulResult = ws->setGetDataUnsignedLong((xsd__unsignedLong)42);
-		cout << "unsigned long=" << ulResult << endl;
+                ulResult = ws->setGetDataUnsignedLong((xsd__unsignedLong)42);
+                cout << "unsigned long=" << ulResult << endl;
 
-		fResult = ws->setGetDataFloat((xsd__float)35.3535888888);
-		printf("float=%.6g\n", fResult); fflush(stdout);
+                fResult = ws->setGetDataFloat((xsd__float)35.3535888888);
+                printf("float=%.6g\n", fResult); fflush(stdout);
 
-		dResult = ws->setGetDataDouble((xsd__double)70.7175888888);
-		printf("double=%.10g\n", dResult); fflush(stdout);
+                dResult = ws->setGetDataDouble((xsd__double)70.7175888888);
+                printf("double=%.10g\n", dResult); fflush(stdout);
 
         durationResult = ws->setGetDataDurationType((xsd__duration)123456789);
         cout << "duration=" << durationResult << endl;
 
-		dateResult = ws->setGetDateType(testDate);
-		strftime(dateTime, 50, "%a %b %d %Y", &dateResult);
-		cout << "date=" << dateTime << endl;
-
-		dateTimeResult = ws->setGetDateTimeType(testDate);
-		strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", &dateTimeResult);
-		cout << "dateTime=" << dateTime << endl;
+                dateResult = ws->setGetDateType(testDate);
+                strftime(dateTime, 50, "%a %b %d %Y", &dateResult);
+                cout << "date=" << dateTime << endl;
+
+                dateTimeResult = ws->setGetDateTimeType(testDate);
+                strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", &dateTimeResult);
+                cout << "dateTime=" << dateTime << endl;
 
 //  This is being commented out due to issue on some servers
 //  An additional testcase XSDTime has been created to isolate this test.
-//		timeResult = ws->setGetTimeType(testDate);
-//		strftime(dateTime, 50, "%H:%M:%S", &timeResult);
-//		cout << "time=" << dateTime << endl;
-
-		strResult = ws->setGetDataString("never odd or even");
-		cout << "string=" << strResult << endl;
-		strResult = ws->setGetDataString("m");
-		cout << "small string=" << strResult << endl;
+//              timeResult = ws->setGetTimeType(testDate);
+//              strftime(dateTime, 50, "%H:%M:%S", &timeResult);
+//              cout << "time=" << dateTime << endl;
+
+                strResult = ws->setGetDataString("never odd or even");
+                cout << "string=" << strResult << endl;
+                strResult = ws->setGetDataString("m");
+                cout << "small string=" << strResult << endl;
         strResult = ws->setGetDataString("");
         if (strResult != NULL)
         {
@@ -185,67 +185,67 @@
             cout << "empty string = <NULL>" << endl;
         }
         
-		intResult = ws->setGetIntegerType(919191919);
-		cout << "integer=" << intResult << endl;
+                intResult = ws->setGetIntegerType(919191919);
+                cout << "integer=" << intResult << endl;
 
-		decResult = ws->setGetDecimalType(929292929.5555555555555);
+                decResult = ws->setGetDecimalType(929292929.5555555555555);
         printf("decimal=%.5f\n", decResult); fflush(stdout);
 
-		b64Result = ws->setGetBase64BinaryType(b64Test);
+                b64Result = ws->setGetBase64BinaryType(b64Test);
         int size = 0;
         const xsd__unsignedByte * base64BinaryData = b64Result.get(size);
-		cout << "base64Binary size=" << size << endl;
-		if( size > 0)
-		{
-			cout << "base64Binary data=" << asciiToStringOfLength((char *)base64BinaryData, size) << endl;
-		}
+                cout << "base64Binary size=" << size << endl;
+                if( size > 0)
+                {
+                        cout << "base64Binary data=" << asciiToStringOfLength((char *)base64BinaryData, size) << endl;
+                }
 
-		hexResult = ws->setGetHexBinary(hexTest);
+                hexResult = ws->setGetHexBinary(hexTest);
         size = 0;
         const xsd__unsignedByte * hexBinaryData = hexResult.get(size);
-		cout << "hexBinary size=" << size << endl;
-		if( size > 0)
-		{
-			cout << "hexBinary data=" << asciiToStringOfLength((char *)hexBinaryData, size) << endl;
-		}
-
-		bSuccess = true;
-		delete ws;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                cout << "hexBinary size=" << size << endl;
+                if( size > 0)
+                {
+                        cout << "hexBinary data=" << asciiToStringOfLength((char *)hexBinaryData, size) << endl;
+                }
+
+                bSuccess = true;
+                delete ws;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        
+        return 0;
 }
 
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp Thu Apr 27 20:03:51 2006
@@ -48,61 +48,61 @@
 
 int main(int argc, char* argv[])
 {
-	char endpoint[256];
-	const char* url="http://localhost:80/axis/Calculator";
-	char dateTime[50];
-
-	xsd__boolean* boolResult;
-	xsd__byte* bResult;
-	xsd__unsignedByte* ubResult;
-	xsd__short* sResult;
-	xsd__unsignedShort* usResult;
-	xsd__int* iResult;
-	xsd__unsignedInt* uiResult;
-	xsd__long* lResult;
-	xsd__unsignedLong* ulResult;
-	xsd__float* fResult;
-	xsd__double* dResult;
-	xsd__date* dateResult;			// typedef of struct tm
-	xsd__dateTime* dateTimeResult;	// typedef of struct tm
-	xsd__time* timeResult;			// typedef of struct tm
-	xsd__duration* durationResult;
-	xsd__string strResult;
-	xsd__integer* intResult;
-	xsd__decimal* decResult;
-	xsd__base64Binary* b64Result;
-	xsd__hexBinary* hexResult;
-
-	xsd__boolean boolInput=(xsd__boolean)1;
-	xsd__byte bInput=(xsd__byte)31;
-	xsd__unsignedByte ubInput=(xsd__unsignedByte)32;
-	xsd__short sInput=(xsd__short)7;
-	xsd__unsignedShort usInput=(xsd__unsignedShort)14;
-	xsd__int iInput=(xsd__int)21;
-	xsd__unsignedInt uiInput=(xsd__unsignedInt)28;
-	xsd__long lInput=(xsd__long)35;
-	xsd__unsignedLong ulInput=(xsd__unsignedLong)42;
-	xsd__float fInput=(xsd__float)35.3535888888;
-	xsd__double dInput=(xsd__double)70.7175888888;
-	xsd__date dateInput;			// typedef of struct tm
-	xsd__dateTime dateTimeInput;	// typedef of struct tm
-	xsd__time timeInput;			// typedef of struct tm
-	xsd__duration durationInput = (xsd__duration) 123456789;
- 	xsd__string strInput=(xsd__string)"never odd or even";
-	xsd__integer intInput=(xsd__integer)919191919;
-	xsd__decimal decInput=(xsd__decimal)929292929.5555555555555;
-	xsd__base64Binary b64Input;
-	xsd__hexBinary hexInput;
-
-	xsd__base64Binary b64Test;
-	xsd__hexBinary hexTest;
+        char endpoint[256];
+        const char* url="http://localhost:80/axis/Calculator";
+        char dateTime[50];
+
+        xsd__boolean* boolResult;
+        xsd__byte* bResult;
+        xsd__unsignedByte* ubResult;
+        xsd__short* sResult;
+        xsd__unsignedShort* usResult;
+        xsd__int* iResult;
+        xsd__unsignedInt* uiResult;
+        xsd__long* lResult;
+        xsd__unsignedLong* ulResult;
+        xsd__float* fResult;
+        xsd__double* dResult;
+        xsd__date* dateResult;                  // typedef of struct tm
+        xsd__dateTime* dateTimeResult;  // typedef of struct tm
+        xsd__time* timeResult;                  // typedef of struct tm
+        xsd__duration* durationResult;
+        xsd__string strResult;
+        xsd__integer* intResult;
+        xsd__decimal* decResult;
+        xsd__base64Binary* b64Result;
+        xsd__hexBinary* hexResult;
+
+        xsd__boolean boolInput=(xsd__boolean)1;
+        xsd__byte bInput=(xsd__byte)31;
+        xsd__unsignedByte ubInput=(xsd__unsignedByte)32;
+        xsd__short sInput=(xsd__short)7;
+        xsd__unsignedShort usInput=(xsd__unsignedShort)14;
+        xsd__int iInput=(xsd__int)21;
+        xsd__unsignedInt uiInput=(xsd__unsignedInt)28;
+        xsd__long lInput=(xsd__long)35;
+        xsd__unsignedLong ulInput=(xsd__unsignedLong)42;
+        xsd__float fInput=(xsd__float)35.3535888888;
+        xsd__double dInput=(xsd__double)70.7175888888;
+        xsd__date dateInput;                    // typedef of struct tm
+        xsd__dateTime dateTimeInput;    // typedef of struct tm
+        xsd__time timeInput;                    // typedef of struct tm
+        xsd__duration durationInput = (xsd__duration) 123456789;
+        xsd__string strInput=(xsd__string)"never odd or even";
+        xsd__integer intInput=(xsd__integer)919191919;
+        xsd__decimal decInput=(xsd__decimal)929292929.5555555555555;
+        xsd__base64Binary b64Input;
+        xsd__hexBinary hexInput;
+
+        xsd__base64Binary b64Test;
+        xsd__hexBinary hexTest;
 
-	//xsd__unsignedByte* testUB = (xsd__unsignedByte*)"never odd or even";
+        //xsd__unsignedByte* testUB = (xsd__unsignedByte*)"never odd or even";
 
-	xsd__unsignedByte* testUB = (xsd__unsignedByte*)stringToAscii("<test><xml>some dod&y string</xml></test>");
+        xsd__unsignedByte* testUB = (xsd__unsignedByte*)stringToAscii("<test><xml>some dod&y string</xml></test>");
 
 
-	b64Test.set(testUB, 41);
+        b64Test.set(testUB, 41);
     hexTest.set(testUB, 41);
 
     time_t timeToTest;
@@ -111,230 +111,230 @@
     xsd__date testDate;
     memcpy(&testDate, temp, sizeof(xsd__date));
 
-	if(argc>1)
-		url = argv[1];
+        if(argc>1)
+                url = argv[1];
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+                bool bSuccess = false;
+                int     iRetryIterationCount = 3;
 
-		do
-		{
-	try
-	{
-		sprintf(endpoint, "%s", url);
-		XSDElementNil* ws = new XSDElementNil(endpoint);
-
-		boolResult = ws->setGetDataBoolean(&boolInput);
-		cout << "bool=" << *boolResult << endl;
-		boolResult = ws->setGetDataBoolean(NULL);
-		if(boolResult)
-			cout << "bool nil=" << *boolResult << endl;
-		else
-			cout << "bool nil=NULL" << endl;
-
-		bResult = ws->setGetDataByte(&bInput);
-		printf("byte=%d\n", *bResult); fflush(stdout);
-		bResult = ws->setGetDataByte(NULL);
-		if(bResult) {
-			printf("byte nil=%d\n", *bResult); fflush(stdout);
-		}
-		else
-			cout << "byte nil=NULL" << endl;
-
-
-		ubResult = ws->setGetDataUnsignedByte(&ubInput);
-		printf("unsigned byte=%d\n", *ubResult); fflush(stdout);
-		ubResult = ws->setGetDataUnsignedByte(NULL);
-		if(ubResult) {
-			printf("unsigned byte nil=%d\n", *ubResult); fflush(stdout);
-		}
-		else
-			cout << "unsigned byte nil=NULL" << endl;
-
-		sResult = ws->setGetDataShort(&sInput);
-		cout << "short=" << *sResult << endl;
-		sResult = ws->setGetDataShort(NULL);
-		if(sResult)
-			cout << "short nil=" << *sResult << endl;
-		else
-			cout << "short nil=NULL" << endl;
-
-		usResult = ws->setGetDataUnsignedShort(&usInput);
-		cout << "unsigned short=" << *usResult << endl;
-		usResult = ws->setGetDataUnsignedShort(NULL);
-		if(usResult)
-			cout << "unsigned short nil=" << *usResult << endl;
-		else
-			cout << "unsigned short nil=NULL" << endl;
-
-		iResult = ws->setGetDataInt(&iInput);
-		cout << "int=" << *iResult << endl;
-		iResult = ws->setGetDataInt(NULL);
-		if(iResult)
-			cout << "int nil=" << *iResult << endl;
-		else
-			cout << "int nil=NULL" << endl;
-
-		uiResult = ws->setGetDataUnsignedInt(&uiInput);
-		cout << "unsigned int=" << *uiResult << endl;
-		uiResult = ws->setGetDataUnsignedInt(NULL);
-		if(uiResult)
-			cout << "unsigned int nil=" << *uiResult << endl;
-		else
-			cout << "unsigned int nil=NULL" << endl;
-
-		lResult = ws->setGetDataLong(&lInput);
-		cout << "long=" << *lResult << endl;
-		lResult = ws->setGetDataLong(NULL);
-		if(lResult)
-			cout << "long nil=" << *lResult << endl;
-		else
-			cout << "long nil=NULL" << endl;
-
-		ulResult = ws->setGetDataUnsignedLong(&ulInput);
-		cout << "unsigned long=" << *ulResult << endl;
-		ulResult = ws->setGetDataUnsignedLong(NULL);
-		if(ulResult)
-			cout << "unsigned long nil=" << *ulResult << endl;
-		else
-			cout << "unsigned long nil=NULL" << endl;
-
-		fResult = ws->setGetDataFloat(&fInput);
-		printf("float=%.6g\n", *fResult); fflush(stdout);
-		fResult = ws->setGetDataFloat(NULL);
-		if(fResult) {
-			printf("float nil=%.6g\n", *fResult); fflush(stdout);
-		} else
-			cout << "float nil=NULL" << endl;
-
-		dResult = ws->setGetDataDouble(&dInput);
-		printf("double=%.10g\n", *dResult); fflush(stdout);
-		dResult = ws->setGetDataDouble(NULL);
-		if(dResult) {
-			printf("double nil=%.10g\n", *dResult); fflush(stdout);
-		} else
-			cout << "double nil=NULL" << endl;
+                do
+                {
+        try
+        {
+                sprintf(endpoint, "%s", url);
+                XSDElementNil* ws = new XSDElementNil(endpoint);
+
+                boolResult = ws->setGetDataBoolean(&boolInput);
+                cout << "bool=" << *boolResult << endl;
+                boolResult = ws->setGetDataBoolean(NULL);
+                if(boolResult)
+                        cout << "bool nil=" << *boolResult << endl;
+                else
+                        cout << "bool nil=NULL" << endl;
+
+                bResult = ws->setGetDataByte(&bInput);
+                printf("byte=%d\n", *bResult); fflush(stdout);
+                bResult = ws->setGetDataByte(NULL);
+                if(bResult) {
+                        printf("byte nil=%d\n", *bResult); fflush(stdout);
+                }
+                else
+                        cout << "byte nil=NULL" << endl;
+
+
+                ubResult = ws->setGetDataUnsignedByte(&ubInput);
+                printf("unsigned byte=%d\n", *ubResult); fflush(stdout);
+                ubResult = ws->setGetDataUnsignedByte(NULL);
+                if(ubResult) {
+                        printf("unsigned byte nil=%d\n", *ubResult); fflush(stdout);
+                }
+                else
+                        cout << "unsigned byte nil=NULL" << endl;
+
+                sResult = ws->setGetDataShort(&sInput);
+                cout << "short=" << *sResult << endl;
+                sResult = ws->setGetDataShort(NULL);
+                if(sResult)
+                        cout << "short nil=" << *sResult << endl;
+                else
+                        cout << "short nil=NULL" << endl;
+
+                usResult = ws->setGetDataUnsignedShort(&usInput);
+                cout << "unsigned short=" << *usResult << endl;
+                usResult = ws->setGetDataUnsignedShort(NULL);
+                if(usResult)
+                        cout << "unsigned short nil=" << *usResult << endl;
+                else
+                        cout << "unsigned short nil=NULL" << endl;
+
+                iResult = ws->setGetDataInt(&iInput);
+                cout << "int=" << *iResult << endl;
+                iResult = ws->setGetDataInt(NULL);
+                if(iResult)
+                        cout << "int nil=" << *iResult << endl;
+                else
+                        cout << "int nil=NULL" << endl;
+
+                uiResult = ws->setGetDataUnsignedInt(&uiInput);
+                cout << "unsigned int=" << *uiResult << endl;
+                uiResult = ws->setGetDataUnsignedInt(NULL);
+                if(uiResult)
+                        cout << "unsigned int nil=" << *uiResult << endl;
+                else
+                        cout << "unsigned int nil=NULL" << endl;
+
+                lResult = ws->setGetDataLong(&lInput);
+                cout << "long=" << *lResult << endl;
+                lResult = ws->setGetDataLong(NULL);
+                if(lResult)
+                        cout << "long nil=" << *lResult << endl;
+                else
+                        cout << "long nil=NULL" << endl;
+
+                ulResult = ws->setGetDataUnsignedLong(&ulInput);
+                cout << "unsigned long=" << *ulResult << endl;
+                ulResult = ws->setGetDataUnsignedLong(NULL);
+                if(ulResult)
+                        cout << "unsigned long nil=" << *ulResult << endl;
+                else
+                        cout << "unsigned long nil=NULL" << endl;
+
+                fResult = ws->setGetDataFloat(&fInput);
+                printf("float=%.6g\n", *fResult); fflush(stdout);
+                fResult = ws->setGetDataFloat(NULL);
+                if(fResult) {
+                        printf("float nil=%.6g\n", *fResult); fflush(stdout);
+                } else
+                        cout << "float nil=NULL" << endl;
+
+                dResult = ws->setGetDataDouble(&dInput);
+                printf("double=%.10g\n", *dResult); fflush(stdout);
+                dResult = ws->setGetDataDouble(NULL);
+                if(dResult) {
+                        printf("double nil=%.10g\n", *dResult); fflush(stdout);
+                } else
+                        cout << "double nil=NULL" << endl;
 
         durationResult = ws->setGetDataDurationType(&durationInput);
         cout << "duration=" << *durationResult << endl;
 
-		dateResult = ws->setGetDateType(&testDate);
-		strftime(dateTime, 50, "%a %b %d %Y", dateResult);
-		cout << "date=" << dateTime << endl;
-		dateResult = ws->setGetDateType(NULL);
-		if(dateResult) {
-			strftime(dateTime, 50, "%a %b %d %Y", dateResult);
-			cout << "date nil=" << dateTime << endl;
-		}
-		else
-			cout << "date nil=NULL" << endl;
-
-		dateTimeResult = ws->setGetDateTimeType(&testDate);
-		strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", dateTimeResult);
-		cout << "dateTime=" << dateTime << endl;
-		dateTimeResult = ws->setGetDateTimeType(NULL);
-		if(dateTimeResult) {
-			strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", dateTimeResult);
-			cout << "dateTime nil=" << dateTime << endl;
-		}
-		else
-			cout << "dateTime nil=NULL" << endl;
+                dateResult = ws->setGetDateType(&testDate);
+                strftime(dateTime, 50, "%a %b %d %Y", dateResult);
+                cout << "date=" << dateTime << endl;
+                dateResult = ws->setGetDateType(NULL);
+                if(dateResult) {
+                        strftime(dateTime, 50, "%a %b %d %Y", dateResult);
+                        cout << "date nil=" << dateTime << endl;
+                }
+                else
+                        cout << "date nil=NULL" << endl;
+
+                dateTimeResult = ws->setGetDateTimeType(&testDate);
+                strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", dateTimeResult);
+                cout << "dateTime=" << dateTime << endl;
+                dateTimeResult = ws->setGetDateTimeType(NULL);
+                if(dateTimeResult) {
+                        strftime(dateTime, 50, "%a %b %d %H:%M:%S %Y", dateTimeResult);
+                        cout << "dateTime nil=" << dateTime << endl;
+                }
+                else
+                        cout << "dateTime nil=NULL" << endl;
 
 //  This is being commented out due to issue on some servers
 //  An additional testcase XSDTimeNil has been created to isolate this test.
-//		timeResult = ws->setGetTimeType(&testDate);
-//		strftime(dateTime, 50, "%H:%M:%S", timeResult);
-//		cout << "time=" << dateTime << endl;
-
-		strResult = ws->setGetDataString("never odd or even");
-		cout << "string=" << strResult << endl;
-		strResult = ws->setGetDataString("m");
-		cout << "small string=" << strResult << endl;
-		strResult = ws->setGetDataString(NULL);
-		if(strResult)
-			cout << "string nil=" << strResult << endl;
-		else
-			cout << "string nil=NULL" << endl;
-
-		intResult = ws->setGetIntegerType(&intInput);
-		cout << "integer=" << *intResult << endl;
-		intResult = ws->setGetIntegerType(NULL);
-		if(intResult)
-			cout << "integer nil=" << *intResult << endl;
-		else
-			cout << "integer nil=NULL" << endl;
+//              timeResult = ws->setGetTimeType(&testDate);
+//              strftime(dateTime, 50, "%H:%M:%S", timeResult);
+//              cout << "time=" << dateTime << endl;
+
+                strResult = ws->setGetDataString("never odd or even");
+                cout << "string=" << strResult << endl;
+                strResult = ws->setGetDataString("m");
+                cout << "small string=" << strResult << endl;
+                strResult = ws->setGetDataString(NULL);
+                if(strResult)
+                        cout << "string nil=" << strResult << endl;
+                else
+                        cout << "string nil=NULL" << endl;
+
+                intResult = ws->setGetIntegerType(&intInput);
+                cout << "integer=" << *intResult << endl;
+                intResult = ws->setGetIntegerType(NULL);
+                if(intResult)
+                        cout << "integer nil=" << *intResult << endl;
+                else
+                        cout << "integer nil=NULL" << endl;
 
-		decResult = ws->setGetDecimalType(&decInput);
+                decResult = ws->setGetDecimalType(&decInput);
         printf("decimal=%.5f\n", *decResult); fflush(stdout);
-		decResult = ws->setGetDecimalType(NULL);
+                decResult = ws->setGetDecimalType(NULL);
         if(decResult) {
-			printf("decimal nil=%.5f\n", *decResult); fflush(stdout);
-		} else
-			cout << "decimal nil=NULL" << endl;
+                        printf("decimal nil=%.5f\n", *decResult); fflush(stdout);
+                } else
+                        cout << "decimal nil=NULL" << endl;
 
-		b64Result = ws->setGetBase64BinaryType(&b64Test);
+                b64Result = ws->setGetBase64BinaryType(&b64Test);
         int size = 0;
         const xsd__unsignedByte * base64BinaryData = b64Result->get(size);
-		cout << "base64Binary size=" << size << endl;
-		if( size > 0)
-		{
-			cout << "base64Binary data=" << asciiToStringOfLength((char *)base64BinaryData, size) << endl;
-		}
-		b64Result = ws->setGetBase64BinaryType(NULL);
-		if(b64Result)
-			cout << "base64Binary nil size=" << b64Result->getSize() << endl;
-		else
-			cout << "base64Binary nil=NULL" << endl;
+                cout << "base64Binary size=" << size << endl;
+                if( size > 0)
+                {
+                        cout << "base64Binary data=" << asciiToStringOfLength((char *)base64BinaryData, size) << endl;
+                }
+                b64Result = ws->setGetBase64BinaryType(NULL);
+                if(b64Result)
+                        cout << "base64Binary nil size=" << b64Result->getSize() << endl;
+                else
+                        cout << "base64Binary nil=NULL" << endl;
 
-		hexResult = ws->setGetHexBinary(&hexTest);
+                hexResult = ws->setGetHexBinary(&hexTest);
         size = 0;
         const xsd__unsignedByte * hexBinaryData = hexResult->get(size);
-		cout << "hexBinary size=" << size << endl;
-		if( size > 0)
-		{
-			cout << "hexBinary data=" << asciiToStringOfLength((char *)hexBinaryData, size) << endl;
-		}
-		hexResult = ws->setGetHexBinary(&hexTest);
-		if(hexResult)
-			cout << "hexBinary nil size=" << hexResult->getSize() << endl;
-		else
-			cout << "hexBinary nil=NULL" << endl;
-
-		bSuccess = true;
-		delete ws;
-	}
-	catch(AxisException& e)
-	{
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+                cout << "hexBinary size=" << size << endl;
+                if( size > 0)
+                {
+                        cout << "hexBinary data=" << asciiToStringOfLength((char *)hexBinaryData, size) << endl;
+                }
+                hexResult = ws->setGetHexBinary(&hexTest);
+                if(hexResult)
+                        cout << "hexBinary nil size=" << hexResult->getSize() << endl;
+                else
+                        cout << "hexBinary nil=NULL" << endl;
+
+                bSuccess = true;
+                delete ws;
+        }
+        catch(AxisException& e)
+        {
+                        bool bSilent = false;
+
+                        if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+                        {
+                                if( iRetryIterationCount > 0)
+                                {
+                                        bSilent = true;
+                                }
+                        }
+                        else
+                        {
+                                iRetryIterationCount = 0;
+                        }
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-	}
-	catch(exception& e)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-	catch(...)
-	{
-	    cout << "Unknown exception has occured" << endl;
-	}
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-	cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-	
-	return 0;
+                        {
+                                cout << "Exception : " << e.what() << endl;
+                        }
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+                iRetryIterationCount--;
+                } while( iRetryIterationCount > 0 && !bSuccess);
+        cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+        
+        return 0;
 }

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTimeClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTimeClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTimeClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTimeClient.cpp Thu Apr 27 20:03:51 2006
@@ -34,54 +34,51 @@
     if(argc>1)
         url = argv[1];
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+    bool bSuccess = false;
+    int     iRetryIterationCount = 3;
 
-		do
-		{
-    try
+    do
     {
-        sprintf(endpoint, "%s", url);
-        XSDElement* ws = new XSDElement(endpoint);
+        try
+        {
+            sprintf(endpoint, "%s", url);
+            XSDElement* ws = new XSDElement(endpoint);
+    
+            timeResult = ws->setGetTimeType(testDate);
+            strftime(dateTime, 50, "%H:%M:%S", &timeResult);
+            cout << "time=" << dateTime << endl;
+            bSuccess = true;
+    
+            delete ws;
+        }
+        catch(AxisException& e)
+        {
+            bool bSilent = false;
 
-        timeResult = ws->setGetTimeType(testDate);
-        strftime(dateTime, 50, "%H:%M:%S", &timeResult);
-        cout << "time=" << dateTime << endl;
-		bSuccess = true;
-
-        delete ws;
-    }
-    catch(AxisException& e)
-    {
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+            if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+            {
+                    if( iRetryIterationCount > 0)
+                            bSilent = true;
+            }
+            else
+                    iRetryIterationCount = 0;
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-    }
-    catch(exception& e)
-    {
-        cout << "Unknown exception has occured" << endl;
-    }
-    catch(...)
-    {
-        cout << "Unknown exception has occured" << endl;
-    }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                    cout << "Exception : " << e.what() << endl;
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        
+        iRetryIterationCount--;
+    } 
+    while( iRetryIterationCount > 0 && !bSuccess);
+                
     cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
    
     return 0;

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTimeNilClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTimeNilClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTimeNilClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTimeNilClient.cpp Thu Apr 27 20:03:51 2006
@@ -35,54 +35,51 @@
     if(argc>1)
         url = argv[1];
 
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
+    bool bSuccess = false;
+    int     iRetryIterationCount = 3;
 
-		do
-		{
-    try
+    do
     {
-     sprintf(endpoint, "%s", url);
-     XSDElementNil* ws = new XSDElementNil(endpoint);
+        try
+        {
+            sprintf(endpoint, "%s", url);
+            XSDElementNil* ws = new XSDElementNil(endpoint);
+        
+            timeResult = ws->setGetTimeType(&testDate);
+            strftime(dateTime, 50, "%H:%M:%S", timeResult);
+            cout << "time=" << dateTime << endl;
+        
+            bSuccess = true;
+            delete ws;
+        }
+        catch(AxisException& e)
+        {
+            bool bSilent = false;
 
-     timeResult = ws->setGetTimeType(&testDate);
-     strftime(dateTime, 50, "%H:%M:%S", timeResult);
-     cout << "time=" << dateTime << endl;
-
-	 bSuccess = true;
-     delete ws;
-    }
-    catch(AxisException& e)
-    {
-			bool bSilent = false;
-
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+            if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+            {
+                    if( iRetryIterationCount > 0)
+                            bSilent = true;
+            }
+            else
+                    iRetryIterationCount = 0;
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
-    }
-    catch(exception& e)
-    {
-        cout << "Unknown exception has occured" << endl;
-    }
-    catch(...)
-    {
-        cout << "Unknown exception has occured" << endl;
-    }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
+                    cout << "Exception : " << e.what() << endl;
+        }
+        catch(exception& e)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+        catch(...)
+        {
+            cout << "Unknown exception has occured" << endl;
+        }
+                
+        iRetryIterationCount--;         
+    } 
+    while( iRetryIterationCount > 0 && !bSuccess);
+    
     cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
    
     return 0;

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTime_TTestClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTime_TTestClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTime_TTestClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTime_TTestClient.cpp Thu Apr 27 20:03:51 2006
@@ -47,55 +47,49 @@
    In linux it is void *                                          */
 RETTYPE ThreadFunc(ARGTYPE Param)
 {
-        /*Type casting the url to char * */
-        char *p=(char *)Param;
-        char endpoint[256];
-        const char* url="http://puppet.in.ibm.com:9060/XSDElement/services/XSDElementPort";
-        if(p!=NULL)
-             url=p;
-		char dateTime[50];
-		xsd__time timeResult;           // typedef of struct tm
-		time_t timeToTest;
-		timeToTest = 1100246323;
-		xsd__date *temp = gmtime(&timeToTest);
-		xsd__date testDate;
-		memcpy(&testDate, temp, sizeof(xsd__date));
-
-		bool bSuccess = false;
-		int	iRetryIterationCount = 3;
-
-		do
-		{
-		try
-		{
-			sprintf(endpoint, "%s", url);
-			XSDElement* ws = new XSDElement(endpoint);
-			timeResult = ws->setGetTimeType(testDate);
-			strftime(dateTime, 50, "%H:%M:%S", &timeResult);
-			cout << "time=" << dateTime << endl;
-			bSuccess = true;
-			delete ws;
-		}
+    /*Type casting the url to char * */
+    char *p=(char *)Param;
+    char endpoint[256];
+    const char* url="http://puppet.in.ibm.com:9060/XSDElement/services/XSDElementPort";
+    if(p!=NULL)
+         url=p;
+    char dateTime[50];
+    xsd__time timeResult;           // typedef of struct tm
+    time_t timeToTest;
+    timeToTest = 1100246323;
+    xsd__date *temp = gmtime(&timeToTest);
+    xsd__date testDate;
+    memcpy(&testDate, temp, sizeof(xsd__date));
+
+    bool bSuccess = false;
+    int iRetryIterationCount = 3;
+
+    do
+    {
+        try
+        {
+            sprintf(endpoint, "%s", url);
+            XSDElement* ws = new XSDElement(endpoint);
+            timeResult = ws->setGetTimeType(testDate);
+            strftime(dateTime, 50, "%H:%M:%S", &timeResult);
+            cout << "time=" << dateTime << endl;
+            bSuccess = true;
+            delete ws;
+        }
         catch(AxisException& e)
         {
-			bool bSilent = false;
+            bool bSilent = false;
 
-			if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
-			{
-				if( iRetryIterationCount > 0)
-				{
-					bSilent = true;
-				}
-			}
-			else
-			{
-				iRetryIterationCount = 0;
-			}
+            if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+            {
+                if( iRetryIterationCount > 0)
+                        bSilent = true;
+            }
+            else
+                iRetryIterationCount = 0;
 
             if( !bSilent)
-			{
-				cout << "Exception : " << e.what() << endl;
-			}
+                cout << "Exception : " << e.what() << endl;
         }
         catch(exception& e)
         {
@@ -105,12 +99,16 @@
         {
             cout << "Unknown exception has occured" << endl;
         }
-		iRetryIterationCount--;
-		} while( iRetryIterationCount > 0 && !bSuccess);
-                #ifndef WIN32
-                        pthread_exit(0);
-                #endif
-        return 0;
+        
+    iRetryIterationCount--;
+    } 
+    while( iRetryIterationCount > 0 && !bSuccess);
+    
+#ifndef WIN32
+            pthread_exit(0);
+#endif
+    
+    return 0;
 }
 
 
@@ -119,63 +117,63 @@
 int main(int argc, char *argv[])
 {
     Axis::initialize(false);
-	try{
-		 int i;
-		 #ifdef WIN32
-			/*Windows specific code comes here */
-			HANDLE hThread[NUM_THREADS];
-			for(i=0;i<NUM_THREADS;i++){
-					DWORD dwThreadId;
-					//LPVOID dwThrdParam = LPVOID(argv[1]);
-					hThread[i] = CreateThread(
-											NULL,                        // no security attributes
-											0,                           // use default stack size
-											ThreadFunc,                  // thread function
-											LPVOID(argv[1]),             // argument to thread function
-											0,   
-										&dwThreadId);              // returns the thread identifier
-
-			if (hThread[i] == NULL)
-			{
-			cout<<"Thread creation Failed";
-			}
-			}
-			/* Waiting for threads to terminate */
-			WaitForMultipleObjects(NUM_THREADS,hThread,true, INFINITE);
-			for(i=0;i<NUM_THREADS;i++)
-					CloseHandle( hThread[i] );
-
-		#else	
-			pthread_t thread[NUM_THREADS];
-			pthread_attr_t attr;
-			int rc, t;
+    try
+    {
+        int i;
+#ifdef WIN32
+        /*Windows specific code comes here */
+        HANDLE hThread[NUM_THREADS];
+        for(i=0;i<NUM_THREADS;i++)
+        {
+            DWORD dwThreadId;
+            //LPVOID dwThrdParam = LPVOID(argv[1]);
+            hThread[i] = CreateThread(NULL,            // no security attributes
+                                      0,               // use default stack size
+                                      ThreadFunc,      // thread function
+                                      LPVOID(argv[1]), // argument to thread function
+                                      0,   
+                                      &dwThreadId);    // returns the thread identifier
+
+            if (hThread[i] == NULL)
+               cout<<"Thread creation Failed";
+        }
+        
+        /* Waiting for threads to terminate */
+        WaitForMultipleObjects(NUM_THREADS,hThread,true, INFINITE);
+        for (i=0;i<NUM_THREADS;i++)
+           CloseHandle( hThread[i] );
+#else   
+            pthread_t thread[NUM_THREADS];
+            pthread_attr_t attr;
+            int rc, t;
             void *status;
-		//   Initialize and set thread detached attribute
-			pthread_attr_init(&attr);
-			pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
-			for (t = 0; t < NUM_THREADS; t++)
-			{
-			/*Creating threads */
-				rc = pthread_create(&thread[t], &attr, ThreadFunc,(void *)argv[1]);
-				if (rc)
-				{
-					cout<<"Thread Creation Failed";
-				}
-			}
-		//Free attribute and wait for the other threads
-		pthread_attr_destroy(&attr);
-		/* Wait for the threads to terminate  */
-		for(t=0;t<NUM_THREADS;t++){
-			rc = pthread_join(thread[t], &status);
-				if (rc)
-				{
-					cout<<"ERROR from pthread_join()"<<endl;
-				}
-		}
-	#endif
-  }catch(exception &e){
+            //   Initialize and set thread detached attribute
+            pthread_attr_init(&attr);
+            pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
+            for (t = 0; t < NUM_THREADS; t++)
+            {
+                rc = pthread_create(&thread[t], &attr, ThreadFunc,(void *)argv[1]);
+                if (rc)
+                        cout<<"Thread Creation Failed";
+            }
+                    
+            //Free attribute and wait for the other threads
+            pthread_attr_destroy(&attr);
+            
+            /* Wait for the threads to terminate  */
+            for(t=0;t<NUM_THREADS;t++)
+            {
+                rc = pthread_join(thread[t], &status);
+                if (rc)
+                    cout<<"ERROR from pthread_join()"<<endl;
+            }
+#endif
+  }
+  catch(exception &e)
+  {
            cout<< e.what();
   }
+  
   cout<<endl <<"----------------------------------TEST COMPLETE--------------------------------"<<endl;
 }
 

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_ENTITIESClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_ENTITIESClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_ENTITIESClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_ENTITIESClient.cpp Thu Apr 27 20:03:51 2006
@@ -299,18 +299,18 @@
 
         // Test array
         xsd__ENTITIES_Array arrayInput;
-		int arraySize = 2;
-		xsd__ENTITIES * array = new xsd__ENTITIES[arraySize];
+                int arraySize = 2;
+                xsd__ENTITIES * array = new xsd__ENTITIES[arraySize];
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new char[25];
             strcpy (array[inputIndex], simpleENTITIES);
             
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__ENTITIES_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize = 0;
-		const xsd__ENTITIES * output = arrayResult->get(outputSize);
+                int outputSize = 0;
+                const xsd__ENTITIES * output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {
@@ -332,7 +332,7 @@
             }
         }
         
-		 // Clear up input array        
+                 // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ )
         {
             delete array[deleteIndex];

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_ENTITYClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_ENTITYClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_ENTITYClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_ENTITYClient.cpp Thu Apr 27 20:03:51 2006
@@ -300,17 +300,17 @@
 
         // Test array
         xsd__ENTITY_Array arrayInput;
-		int arraySize = 2;
-		xsd__ENTITY *array = new xsd__ENTITY[arraySize];        
+                int arraySize = 2;
+                xsd__ENTITY *array = new xsd__ENTITY[arraySize];        
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new char[25];
             strcpy (array[inputIndex], simpleENTITY);            
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__ENTITY_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize =0;
-		const xsd__ENTITY *output = arrayResult->get(outputSize);
+                int outputSize =0;
+                const xsd__ENTITY *output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp Thu Apr 27 20:03:51 2006
@@ -299,10 +299,10 @@
 
         // Test array
             
-		    
-		int arraySize = 2;
+                    
+                int arraySize = 2;
         xsd__ID_Array arrayInput;
-		xsd__ID * array=new xsd__ID[arraySize];        
+                xsd__ID * array=new xsd__ID[arraySize];        
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex]= new char[25];
@@ -311,8 +311,8 @@
         }
         arrayInput.set(array,arraySize);
         xsd__ID_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize=0;
-		const xsd__ID * output=arrayResult->get(outputSize);
+                int outputSize=0;
+                const xsd__ID * output=arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDREFClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDREFClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDREFClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDREFClient.cpp Thu Apr 27 20:03:51 2006
@@ -299,18 +299,18 @@
 
         // Test array
         xsd__IDREF_Array arrayInput;
-		int arraySize = 2;
-		xsd__IDREF * array = new xsd__IDREF[arraySize];
+                int arraySize = 2;
+                xsd__IDREF * array = new xsd__IDREF[arraySize];
         
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new char[25];
             strcpy (array[inputIndex], simpleIDREF);            
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__IDREF_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize = 0;
-		const xsd__IDREF * output = arrayResult->get(outputSize);
+                int outputSize = 0;
+                const xsd__IDREF * output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize  ; index++)
         {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDREFSClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDREFSClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDREFSClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDREFSClient.cpp Thu Apr 27 20:03:51 2006
@@ -299,18 +299,18 @@
 
         // Test array
         xsd__IDREFS_Array arrayInput;
-		int arraySize = 2;
-		xsd__IDREFS * array = new xsd__IDREFS[arraySize];
+                int arraySize = 2;
+                xsd__IDREFS * array = new xsd__IDREFS[arraySize];
         
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new char[25];
             strcpy (array[inputIndex], simpleIDREFS);           
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__IDREFS_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize = 0;
-		const xsd__IDREFS *output = arrayResult->get(outputSize);
+                int outputSize = 0;
+                const xsd__IDREFS *output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NCNameClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NCNameClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NCNameClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NCNameClient.cpp Thu Apr 27 20:03:51 2006
@@ -36,7 +36,7 @@
         char emptyNCName[1] = "";
         xsd__NCName emptyInput = new char[1];
         strcpy (emptyInput, emptyNCName);
-		char simpleNCName[25] = "xml.si-mple_name ";
+                char simpleNCName[25] = "xml.si-mple_name ";
         xsd__NCName input = new char[25];
         strcpy (input, simpleNCName);
 
@@ -261,16 +261,16 @@
         // Test array
         int arraySize=2;
         xsd__NCName_Array arrayInput;
-		xsd__NCName * array=new xsd__NCName[arraySize];        
+                xsd__NCName * array=new xsd__NCName[arraySize];        
         for (int inputIndex=0 ; inputIndex < 2 ; inputIndex++)
         {
             array[inputIndex]= new char[25];
             strcpy (array[inputIndex], simpleNCName);
             
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__NCName_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize = 0;
+                int outputSize = 0;
         const xsd__NCName* output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NMTOKENClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NMTOKENClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NMTOKENClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NMTOKENClient.cpp Thu Apr 27 20:03:51 2006
@@ -299,18 +299,18 @@
 
         // Test array
         xsd__NMTOKEN_Array arrayInput;
-		int arraySize =2;
-		xsd__NMTOKEN * array = new xsd__NMTOKEN[arraySize];        
+                int arraySize =2;
+                xsd__NMTOKEN * array = new xsd__NMTOKEN[arraySize];        
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new char[25];
             strcpy (array[inputIndex], simpleNMTOKEN);
             
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
         xsd__NMTOKEN_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize = 0;
-		const xsd__NMTOKEN * output = arrayResult->get(outputSize);
+                int outputSize = 0;
+                const xsd__NMTOKEN * output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {
@@ -331,7 +331,7 @@
                 cout << "  element[" << index << "]=<nil>" << endl;
             }
         }
-		// Clear up input array        
+                // Clear up input array        
         for (int deleteIndex = 0 ; deleteIndex < arraySize ; deleteIndex++ )
         {
             delete array[deleteIndex];

Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NMTOKENSClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NMTOKENSClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NMTOKENSClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NMTOKENSClient.cpp Thu Apr 27 20:03:51 2006
@@ -299,19 +299,19 @@
 
         // Test array
         xsd__NMTOKENS_Array arrayInput;
-		int arraySize = 2;
-		xsd__NMTOKENS * array = new xsd__NMTOKENS[arraySize];
+                int arraySize = 2;
+                xsd__NMTOKENS * array = new xsd__NMTOKENS[arraySize];
         
         for (int inputIndex=0 ; inputIndex < arraySize ; inputIndex++)
         {
             array[inputIndex] = new char[25];
             strcpy (array[inputIndex], simpleNMTOKENS);            
         }
-		arrayInput.set(array,arraySize);
+                arrayInput.set(array,arraySize);
 
         xsd__NMTOKENS_Array* arrayResult = ws->asArray(&arrayInput);
-		int outputSize =0;
-		const xsd__NMTOKENS * output = arrayResult->get(outputSize);
+                int outputSize =0;
+                const xsd__NMTOKENS * output = arrayResult->get(outputSize);
         cout << "array of " << outputSize << " elements" << endl;
         for (int index = 0; index < outputSize ; index++)
         {



Mime
View raw message