×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    2

    Not able to get response back while http get with S60

    Hi,

    I am using Net Beans for developing an application on S60. I made one page for user authentication and using .net wcf service to authenticate user. i am able to send data on .net service by HttpGet method but not able to get response back on java page.

    I have tested it on fiddler with this url its working fine and returning response code 200, but not getting response code by java code. Following code i am using. Is some thing wrong here ?

    httpConn = (HttpConnection)Connector.open(url);
    httpConn.setRequestMethod(HttpConnection.GET);
    httpConn.setRequestProperty("User-Agent",
    "Profile/MIDP-2.1 Confirguration/CLDC-1.1");

    int respCode = httpConn.getResponseCode();

    Thanks
    Rishabh

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Not able to get response back while http get with S60

    Welcome to Forum Nokia!

    Nothing wrong there... though I wouldn't bother setting the user-agent.

    Is there an exception thrown?

    Graham.

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    2

    Re: Not able to get response back while http get with S60

    Hi Graham,

    I am not getting any exception, even not getting control back on the page.

    when i debug "httpConn = (HttpConnection)Connector.open(url);" line. It asks me for "Allow connection for this session" on s60 simulator. After allowing, it goes to "int respCode = httpConn.getResponseCode();" line and asks for connection with IIS server by connect 1 access point "winsock", after connect control goes to my wcf service but never come back on client side/java page. This is the whole scenario.

    How can i resolve it ?

    Thanks
    Rishabh

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Not able to get response back while http get with S60

    Can you run your project using the WTK's default emulator just for the testing purposes.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Python for S60 1.9.2 released
    By tvijayan in forum Symbian
    Replies: 26
    Last Post: 2009-03-11, 09:28
  2. Icons in s60
    By drizzt6 in forum Mobile Java General
    Replies: 5
    Last Post: 2009-03-06, 09:32
  3. S40 devices do not handle HTTP HEAD response correctly
    By warwickhunter in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2009-03-06, 08:11
  4. "Forbidden" Response with HTTP Connection
    By bladetech69 in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2009-01-30, 13:39
  5. HTTP connection on S60 2nd FP2
    By apokalychys in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2007-05-24, 13:30

Posting Permissions

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