I am new in the symbian world and i am a little confused.
I used the tool wsdl2cpp from Nokia to connect to a SOAP webservices. Classes were generated and so far so good.
The problem i have is that the result from the Web service is populated in the callback function ( in SetStatus -> KSenConnectionStatusReady) and i want my main code to know the result.
I tried to use CActiveScheduler in my main class, but it blew when i tried to run CActiveScheduler::Install(), i realized after a couple of hrs that some class that the toolkit calls already have an active scheduler running. So, i tried to use that Active Scheduler (CActiveScheduler::Currrent) but when I make the final call to the webservice...the emulator crashes...actually disappears.
Anyway. Code looks like:
In main class...
CSenXmlServiceDescription *pServiceDesc = CSenXmlServiceDescription::NewLC(webServiceAddress, (TDesC8&) KNullDesC8);
CHCallBackTrustCenter* pObserver = CHCallBackTrustCenter::NewLC();
CServiceTCDeviceService* pService = CServiceTCDeviceService::NewLC(*pObserver,*pServiceDesc);
In Class: CkHCallBackTrustCenter
TInt err = 0;
TRAPD(error, result = _pService->CHL(pInput))
........ Get my result in result.
Any help will be appreciated.