• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Call a web service from j2me application

 
Ranch Hand
Posts: 32
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I have created a webservice in java. it is running in tomcat server. I could call it from my java program. it works fine.
this is the url for my service:

http://localhost:8080/CIMCORP/services/CallWebservice?wsdl


And my requirement is to call that webservice from a mobile application.

can any one give me sample program or reference?

thanks in advance.
 
Ranch Hand
Posts: 326
Android Mac OS X Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind of mobile application? Java ME, Android, iPhone?

In Android you have the DefaultHttpClient in the SDK so yo ucan do


Then you just have to parse the response.

There are also a lot of libraries that you could use.
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the reply, Ove Lindström.

I think this thread would sit better elsewhere. Not sure where, but I'll try somewhere and hope I get it right
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I know this may be an obsolete topic, but I am curious what was the outpup. And I may have an idea if it fits here..
G.
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Create stub for using web service. you can use that stub class file for calling web service.
need more clarification on that I can help you.

Regrads
Gopinath
 
reply
    Bookmark Topic Watch Topic
  • New Topic