Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User yanamaddinaveen's Avatar
    Join Date
    Sep 2011
    Posts
    118
    Hi All,

    I am using HTTP transaction for sending data to server. But here my code failed to connecto to sever. Every time Transaction getting failed. Here is my sequence of functions called when i did HTTP post.

    CMSSSAppUi::OverallDataSize() Entered
    CMSSSAppUi::OverallDataSize() Entered
    CMSSSAppUi::OverallDataSize() Entered
    CMSSSAppUi::OverallDataSize() Entered
    CMSSSAppUi::GetNextDataPart() Entered
    CMSSSAppUi::GetNextDataPart() Exited
    CMSSSAppUi::ReleaseData() Entered
    CMSSSAppUi::OverallDataSize() Entered
    CMyHttpCallback::MHFRunL() Entered
    CMyHttpCallback::MHFRunL() - Default case called in switch
    CMyHttpCallback::MHFRunL() Exited
    CMSSSAppUi::ReleaseData() Exited
    CMSSSAppUi::OverallDataSize() Entered
    CMSSSAppUi::OverallDataSize() Entered
    CMyHttpCallback::MHFRunL() Entered
    Transaction failed
    CMyHttpCallback::MHFRunL() Exited

    This is looks like undefined behavior because OveralldataSize calling undefinetely.

    Pls give me your suggestion to overcome this problem.

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    I would look what the Default case called in switch is actually meaning, also, would check whether you can get any additional error information for the Transaction failed.

  3. #3
    Registered User yanamaddinaveen's Avatar
    Join Date
    Sep 2011
    Posts
    118
    Thanks yucca.

    Actually in my application i am opening session only one when launching application.
    RHTTPSession iSession;
    iSession.OpenL();
    And closing a session when exiting from application.
    iSession.Close();
    Will there b any use if i open & close session while doing HTTP post instead of opening in constructor. ??

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    You migth want to consult the original example for HTTP, and see how the sessions are handled in it, then you could utilize it as same in your application as well.

  5. #5
    Registered User yanamaddinaveen's Avatar
    Join Date
    Sep 2011
    Posts
    118
    Still i couldn't able to find the where it is gng wrong. Can any one suggest why my application sequence is behaving undefinitely.

  6. #6
    Registered User preety.saini's Avatar
    Join Date
    Jun 2012
    Posts
    54
    Can you paste your piece of code here. I can help you because a day earlier I faced almost same problem in HTTPClientEngine

Similar Threads

  1. HTTP POST problem
    By rami75lu in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2010-10-21, 10:06
  2. http post problem
    By gunajit9 in forum Symbian C++
    Replies: 10
    Last Post: 2009-10-01, 15:13
  3. A problem about Http POST
    By wanghuasong1001 in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2009-08-03, 10:09
  4. HTTP POST Problem
    By Rx-lee in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2006-05-30, 04:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved