×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    13

    [moved] how to call a web service from Http connection in j2me?

    Hi all,

    In a client-service application, I've to call a web service from client side. The web method is at server end and returns a XML in the form of string. Means I've to call a method from HTTP who's return type is a string.Can anybody help me to do this?

  2. #2
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Sri Lanka, Colombo
    Posts
    204

    Smile Re: [moved] how to call a web service from Http connection in j2me?

    hi mindIt,

    first of all ur web service should be a restful web service. then only u can call it through http connection. if u r using Apache axix2 thn no need to worry it'll create a restfull web service.

    the next thing is u need to parse XML. for that u cn use kxml parser.
    do some r&D.

    cheers,
    Randika

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

    Re: [moved] how to call a web service from Http connection in j2me?

    Quote Originally Posted by mindIt View Post
    Hi all,

    In a client-service application, I've to call a web service from client side. The web method is at server end and returns a XML in the form of string. Means I've to call a method from HTTP who's return type is a string.Can anybody help me to do this?
    Hi,
    You have to have the idea of the two things
    1.Accessing the web services
    2.parsing the output if it not in the format,or in the human readable form.

    for the first you need to read the lines/codes written on the link below -
    http://www.ibm.com/developerworks/li...?ca=drs-wi1105
    for the parsing, read the lines on the following URL -
    http://www.ibm.com/developerworks/library/wi-parsexml/


    are these lines helpful?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. [moved] http connection and web service
    By jaakkie in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2009-02-11, 05:40
  2. [moved] Http Connection
    By devdattac in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2008-11-15, 09:11
  3. [Moved] Query about wap and web apn in a simple http connection
    By kishore84 in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2008-04-21, 09:58
  4. Http Connection and dialing a call not working on phone
    By electracool in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-12-14, 05:19
  5. Replies: 1
    Last Post: 2006-09-16, 09:47

Posting Permissions

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