Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor rajan701v's Avatar
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244
    Hi all,,

    I know about how to get data from mysql server using j2me application which is through JSR-172 webservice API. I will create a webservice and deploy it to the any webserver (as like Tomcat). But my mobile do not have JSR-172 api. Then how could i retrieve the data from the mysql server which is called by the webservice....

    Please Reply
    Last edited by rajan701v; 2011-01-22 at 10:41.

  2. #2
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    It will be much simpler if you don't use an XML-based protocol. Communicate with your web server using an HTTP POST.

    Graham.

  3. #3
    Regular Contributor rajan701v's Avatar
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244
    Quote Originally Posted by grahamhughes View Post
    It will be much simpler if you don't use an XML-based protocol. Communicate with your web server using an HTTP POST.

    Graham.
    That means there is no need of webservice,.....and i have to call a servlet from application
    could u plz provide me link for the same.

    Please reply

  4. #4
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    If you look in the JavaDocs for the HttpConnection interface, you will find sample code for POSTing data to an HTTP server, and receiving a response.

    Graham.

  5. #5
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Quote Originally Posted by rajan701v View Post
    That means there is no need of webservice,.....and i have to call a servlet from application
    could u plz provide me link for the same.

    Please reply
    You will be using the web service however the data will not be transferred in terms of XML. You have to just call the service and get the data in terms of the direct byte representation and hence you will not need the XML parsing and all.

    Search the web for this, Here is one URL which can help you.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. not able to submit contents at the server end
    By cuteteddy02 in forum Mobile Java General
    Replies: 2
    Last Post: 2010-04-17, 20:41
  2. Replies: 4
    Last Post: 2008-12-13, 17:37
  3. Can i read multiple data at a time pushed from the server.
    By Basu in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-11-27, 09:13
  4. how to read image and text data at a time from the server
    By Basu in forum Mobile Java General
    Replies: 2
    Last Post: 2007-11-14, 19:34
  5. Shopping Cart App: Commiting user choices at Server End
    By niranjan.aka.robert in forum Mobile Java General
    Replies: 1
    Last Post: 2007-08-08, 14:04

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