void CSupLoginServiceProvider::ConstructL() { __LOGSTR_TOFILE("CSupLoginServiceProvider::ConstructL() begins"); // Form full path to credentials settings file RFs &fs = CCoeEnv::Static()->FsSession(); TFileName privatePath; fs.PrivatePath(privatePath); TParse parser; TFileName processFileName(RProcess().FileName()); User::LeaveIfError(parser.Set(KLoginProviderSettingsFilename, &privatePath, &processFileName)); iSettingsFile = parser.FullName(); // Read credentials from settings file ReadDataFromFileL(); if (iMemberID && iUsername && iPassword) iLogged = ETrue; // Discover and retrieve description of the web service CSenXmlServiceDescription* serviceDesc = CSenXmlServiceDescription::NewLC( KServiceEndpointMemberId, KNullDesC8 ); serviceDesc->SetFrameworkIdL(KDefaultBasicWebServicesFrameworkID); // Create connection to web service iConnection = CSenServiceConnection::NewL(*this, *serviceDesc); CleanupStack::PopAndDestroy(); // serviceDesc __LOGSTR_TOFILE("CSupLoginServiceProvider::ConstructL() ends"); }
void CTestHostlet::DescribeServiceL(CSenXmlServiceDescription& aSD) { if( ip2DescribeServiceL ) { (*ip2DescribeServiceL)(aSD); } else { aSD.SetEndPointL(Endpoint()); aSD.SetContractL(Contract()); aSD.SetFrameworkIdL(FrameworkId()); } }