Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call a web service from j2me application

 
vinoth Robert
Ranch Hand
Posts: 31
Firefox Browser MS IE
  • Mark post as helpful
  • send pies
  • 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.
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49455
64
  • Mark post as helpful
  • send pies
  • 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
 
Gabriel Vince
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • 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.
 
Gopinath Karyadath
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic