websrv_pub/xml_extensions_api/tsrc/bc/xml_extensions_api/src/WSTesterBlocks.cpp
changeset 31 a8ae8e6fbd42
parent 23 a1df79fa35b4
--- a/websrv_pub/xml_extensions_api/tsrc/bc/xml_extensions_api/src/WSTesterBlocks.cpp	Fri Jun 11 14:42:58 2010 +0300
+++ b/websrv_pub/xml_extensions_api/tsrc/bc/xml_extensions_api/src/WSTesterBlocks.cpp	Tue Jul 06 15:29:11 2010 +0300
@@ -248,6 +248,11 @@
 		{
 			// Test case not passed
 			iLog->Log(_L("Registering identity provider 1 failed. Error: %d"), error );
+			if(error == -30321)
+			{
+				iWriter.WriteL(_L8("Registering identity provider 1 failed. End-user denies permission."));
+				iWriter.CommitL();
+			}
 			return error;
 		}
         return KErrNone;
@@ -279,6 +284,11 @@
 	if (error != KErrNone )
 	{
 		iLog->Log(_L("Registering Service Description failed. Error: %d"), error );
+		if(error == -30321)
+		{
+			iWriter.WriteL(_L8("Registering Service Description failed.End-user denies permission"));
+			iWriter.CommitL();
+		}
 		return error;
 	}
     return KErrNone;
@@ -464,7 +474,7 @@
 
 	TInt retVal = iSenServiceConnection->StartTransaction();
 	
-	iLog->Log(_L("### _S_StartTransaction -> ended###"));
+	iLog->Log(_L("### _S_StartTransaction -> ended: %d"), retVal);
 	return retVal;
 }
 
@@ -474,7 +484,7 @@
 
 	TInt retVal = iSenServiceConnection->TransactionCompleted();
 	
-	iLog->Log(_L("### _S_TransactionCompleted -> ended###"));
+	iLog->Log(_L("### _S_TransactionCompleted -> ended: %d"), retVal);
 	return retVal;
 }
 
@@ -2733,6 +2743,7 @@
 	{
 
 		iLog->Log(_L("******* SetStatus -> Started! ********"));
+		iLog->Log(_L("Status: %d"), aStatus);
 
 	switch( aStatus )
 		{
@@ -3267,7 +3278,6 @@
 
 	HBufC8* pResult8 = HBufC8::NewLC( source8.Length() );
 	TPtr8 result8 = pResult8->Des();
-	iBase64Codec.Initialise();
 	iBase64Codec.Decode(source8	, result8);
 	aMessage = result8;
 	CleanupStack::Pop(); // pResult8