×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    15

    Wsdl2CppL2CPP/Soap, how to retrieve the data from WebService

    Hello there,

    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);
    pServiceDesc->SetFrameworkIdL(KDefaultBasicWebServicesFrameworkID);

    CHCallBackTrustCenter* pObserver = CHCallBackTrustCenter::NewLC();
    CServiceTCDeviceService* pService = CServiceTCDeviceService::NewLC(*pObserver,*pServiceDesc);
    ...
    ...
    ...
    return iResult;



    In Class: CkHCallBackTrustCenter

    switch (aStatus)
    {
    case KSenConnectionStatusReady:
    {
    TInt err = 0;
    RCHResponse result;
    RCHInput pInput;

    populate pInput

    TRAPD(error, result = _pService->CHL(pInput))
    ........
    ........
    ........ Get my result in result.



    Any help will be appreciated.

    thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: Wsdl2CppL2CPP/Soap, how to retrieve the data from WebService

    You may consider trying existing WSF examples first. Such as S60Ex\AddressBook bundled with the SDK. Though the emulator should not have died indeed (check its logfile http://wiki.forum.nokia.com/index.php/Epocwind.out if it contains something).

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    15

    Re: Wsdl2CppL2CPP/Soap, how to retrieve the data from WebService

    Quote Originally Posted by wizard_hu_ View Post
    You may consider trying existing WSF examples first. Such as S60Ex\AddressBook bundled with the SDK. Though the emulator should not have died indeed (check its logfile http://wiki.forum.nokia.com/index.php/Epocwind.out if it contains something).
    Thanks Wizard.. i didn't know about the log! Of course i never saw that option since i had the latest version of Java (6.0) and i couldnt see the preference box!!

    BTW, i fixed the problem, i was starting the CActiveSheduler before setting a couple variables that i needed later on!!

Similar Threads

  1. Replies: 2
    Last Post: 2008-07-03, 15:29
  2. Hoe Retrieve data coding scheme from gsm 03.38
    By martin.virile in forum General Development Questions
    Replies: 0
    Last Post: 2007-01-08, 07:06
  3. Problems with client/server data transfer
    By wilse in forum Symbian
    Replies: 1
    Last Post: 2004-08-03, 16:14
  4. Smart way to retrieve data by OutPutStream from RMS ?
    By akokchai in forum Mobile Java General
    Replies: 7
    Last Post: 2003-07-11, 22:20
  5. Replies: 0
    Last Post: 2002-12-04, 15:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •