--- a/webservices/wscore/src/senclientsession.cpp Fri Apr 16 16:07:50 2010 +0300
+++ b/webservices/wscore/src/senclientsession.cpp Fri Jun 11 14:42:58 2010 +0300
@@ -37,7 +37,7 @@
#include <SenXmlUtils.h>
#include <SenXmlProperties.h>
-#include <xmlengnodelist.h>
+#include <xml/dom/xmlengnodelist.h>
#include <defaultcaps.hrh>
#include "senclientsession.h"
@@ -59,9 +59,9 @@
#include "SenSoapEnvelope2.h"
#include "sensoapmessagedom2.h"
-#include "xmlengchunkcontainer.h"
-#include "xmlengfilecontainer.h"
-#include "xmlengdeserializer.h"
+#include <xml/dom/xmlengchunkcontainer.h>
+#include <xml/dom/xmlengfilecontainer.h>
+#include <xml/dom/xmlengdeserializer.h>
#include "SenParser.h"
#include "seninternalcredential.h"
#include "senservercontext.h"
@@ -168,7 +168,8 @@
iFirst = resHandler;
CActiveScheduler::Add(resHandler);
- resHandler->SetActive();
+ if(!resHandler->IsActive())
+ resHandler->SetActive();
resHandler->iStatus = KRequestPending;
TIpcArgs args(&resHandler->iProgressData, resHandler->iSoapOrCid);
@@ -224,6 +225,7 @@
CSenMessageResourceHandler* tmp = resHandler;
resHandler = resHandler->iNext;
delete tmp;
+ tmp = NULL;
}
RSessionBase::Close();
}
@@ -260,6 +262,7 @@
SendReceive(ESenCliServPrefferedCarrierAvailable, args, caSync->iStatus);
retVal = caSync->iStatus.Int();
delete caSync;
+ caSync = NULL;
}
return retVal;
@@ -279,6 +282,7 @@
SendReceive(ESenCliServNewCarrierActive, args, caSync->iStatus);
retVal = caSync->iStatus.Int();
delete caSync;
+ caSync = NULL;
}
return retVal;
}
@@ -294,6 +298,7 @@
SendReceive(ESenCliServMobilityError, args, caSync->iStatus);
retVal = caSync->iStatus.Int();
delete caSync;
+ caSync = NULL;
}
return retVal;
}
@@ -328,6 +333,7 @@
asWait.Start();
retVal = caSync->iStatus.Int();
delete caSync;
+ caSync = NULL;
}
return retVal;
}
@@ -356,7 +362,8 @@
void CSenConnAgentSync::Start()
{
- SetActive();
+ if(!IsActive())
+ SetActive();
}
CSenClientSession* CSenClientSession::NewL(MSenServiceManager& aServer, CSenServerContext& aCtx)
@@ -991,6 +998,7 @@
{
CSLOG_L(iConnectionID,KMinLogLevel ,"ESenServGetIdentityProviders");
IdentityProviders(aMessage);
+ CSLOG_L(iConnectionID,KMinLogLevel ,"ESenServGetIdentityProviders Completed");
break;
}
default:
@@ -1500,7 +1508,7 @@
const TDesC8& aRequest,
CSenAtomEntry& aAtomEntry)
{
- CSLOG_L(iConnectionID, KMinLogLevel ,"CSenClientSession::ParseMessageL");
+ CSLOG_L(iConnectionID, KMinLogLevel ,"CSenClientSession::ParseMessageL(aTransactionId, aRequest, aAtomEntry)");
CSenParser* pParser = CSenParser::NewLC();
pParser->EnableFeature(EReportNamespaceMapping);
pParser->ParseL(aRequest, aAtomEntry);
@@ -1551,13 +1559,14 @@
}
CleanupStack::PopAndDestroy(pParser);
+ CSLOG_L(iConnectionID, KMinLogLevel ,"CSenClientSession::ParseMessageL(aTransactionId, aRequest, aAtomEntry) Completed");
return KErrNone;
}
TInt CSenClientSession::ParseMessageL(TInt aTransactionId,
const TDesC8& aRequest,
CSenSoapEnvelope2& aSoapEnvelope)
{
- CSLOG_L(iConnectionID, KMinLogLevel , "CSenClientSession::ParseMessageL");
+ CSLOG_L(iConnectionID, KMinLogLevel , "CSenClientSession::ParseMessageL(aTransactionId, aRequest, aSoapEnvelope)");
CSenParser* pParser = CSenParser::NewLC();
pParser->EnableFeature(EReportNamespaceMapping);
pParser->ParseL(aRequest, aSoapEnvelope);
@@ -1651,7 +1660,7 @@
}
}
CleanupStack::PopAndDestroy(pParser);
-
+ CSLOG_L(iConnectionID, KMinLogLevel , "CSenClientSession::ParseMessageL(aTransactionId, aRequest, aSoapEnvelope) Completed");
return retVal;
}
@@ -1943,7 +1952,7 @@
CleanupStack::PushL( pErrorMsg );
}
aSenChunk.ChunkHeader().SetContextId(transactionId); // temporary
- CSLOG_FORMAT((iConnectionID, KNormalLogLevel , _L8("SendMsgL - SetContextId: %d"), transactionId));
+ CSLOG_FORMAT((iConnectionID, KMinLogLevel , _L8("SendMsgL - SetContextId: %d"), transactionId));
}
else
{
@@ -3739,6 +3748,7 @@
}
void CSenClientSession::AddCredentialL( const RMessage2& aMessage )
{
+ CSLOG(iConnectionID, KMinLogLevel ,(_L("CSenClientSession::AddCredentialL()")));
TInt retVal(KErrNone);
CSenChunk* pSenChunk = NULL;
@@ -3851,14 +3861,27 @@
iManager.AddCredentialL(pIdP, pCredential, retVal);
RWSDescriptionArray aMatches;
- iManager.ServiceDescriptionsL(aMatches,*pSD);
- CleanupClosePushL(aMatches);
-
- for(TInt i = 0; i < aMatches.Count(); i++)
- {
- ((CSenWebServiceSession*)aMatches[i])->AddCredentialObserverL(*pCredential);
- }
-
+ iManager.ServiceDescriptionsL(aMatches,*pSD);
+ CleanupClosePushL(aMatches);
+
+ for(TInt i = 0; i < aMatches.Count(); i++)
+ {
+ if(((CSenWebServiceSession*)aMatches[i]) && pCredential)
+ {
+ CSLOG_FORMAT((iConnectionID, KMinLogLevel , _L8("SD Type is = %d"), aMatches[i]->DescriptionClassType()));
+ if( aMatches[i]->HasSuperClass( MSenServiceDescription::EServiceSession ) )
+ {
+ CSLOG(iConnectionID, KMinLogLevel ,(_L("CSenClientSession::AddCredentialL() - Calling AddCredentialObserverL()")));
+ ((CSenWebServiceSession*)aMatches[i])->AddCredentialObserverL(*pCredential);
+ CSLOG(iConnectionID, KMinLogLevel ,(_L("CSenClientSession::AddCredentialL() - Completed AddCredentialObserverL()")));
+ }
+ else
+ {
+ CSLOG(iConnectionID, KMinLogLevel ,(_L("CSenClientSession::AddCredentialL() - SD is not the session object !!! ")));
+ }
+ }
+ }
+
CleanupStack::PopAndDestroy(&aMatches);
CleanupStack::Pop(pCredential);
@@ -3873,6 +3896,7 @@
CleanupStack::PopAndDestroy(pSenChunk);
aMessage.Complete(retVal);
+ CSLOG(iConnectionID, KMinLogLevel ,(_L("CSenClientSession::AddCredentialL() Completed")));
}
void CSenClientSession::CredentialsL( const RMessage2& aMessage )
@@ -4243,6 +4267,7 @@
TInt cancelledTxnId(*pTxnId);
txnIds.Remove(i);
delete pTxnId;
+ pTxnId = NULL;
CSLOG_FORMAT((iConnectionID, KNormalLogLevel , _L8("- Now processing txn with id %d"), cancelledTxnId));
@@ -5544,6 +5569,7 @@
const RPointerArray<CSenIdentityProvider> pIdps = ((MSenCoreServiceManager&)iManager).IdentityProvidersL();
const TInt count = pIdps.Count();
+ CSLOG_FORMAT((iConnectionID, KMinLogLevel , _L8("- TOTAL IDP Found: %d"), count));
// Calculate required heap allocation size:
TInt size(0);
@@ -5658,11 +5684,12 @@
}
CSLOG_L(iConnectionID,KMaxLogLevel ,"- Requested descriptions:");
CSLOG_ALL(iConnectionID,KMaxLogLevel ,(*pIdPrs));
+ CSLOG_L(iConnectionID,KMinLogLevel ,"CSenClientSession::IdentityProviders completed");
}
#ifdef _SENDEBUG
else
{
- CSLOG_FORMAT((iConnectionID, KNormalLogLevel , _L8("- AllocDescToRMsgL failed: %d"), retVal));
+ CSLOG_FORMAT((iConnectionID, KMinLogLevel , _L8("- AllocDescToRMsgL failed: %d"), retVal));
}
#endif // _SENDEBUG