• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Need help for writing webservice

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to web services part...

M doing a android app that has a login funtion,User enters values->the values are passed using http to tomcat server->then checked with mysql db->thn returned to user on android app..
I have done my code using springframework.
Now i have to write a webservice for same..i.e login..

How to i do that?
i have tried the following code..but didnt get the idea
http://www.softwareagility.gr/index.php?q=node/21

need help for writing webservice and then calling it from android..
 
Saloon Keeper
Posts: 7350
170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

M doing a android app that has a login funtion,User enters values->the values are passed using http to tomcat server


I sure hope that you're not sending login data over HTTP. That's what HTTPS is for.

http://www.softwareagility.gr/index.php?q=node/21


That looks like a SOAP WS. While there are SOAP libraries for Android, I would strongly advise to create a REST service instead, which is what just about everyone uses for access from mobile devices. Easier to develop, easier to access. Check out the Jersey library that implements the JAX-RS API on the server side. On the client side you can use the HttpClient library that is built into the Android API.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its best idea to use RestFul webservices for devices. Because of limited memory.
You can use spring DI and Restful webservice with jersey framework.
 
Sayaly Kolhe
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
May 04, 2012 1:30:17 AM org.apache.axis.utils.Admin main
SEVERE: <chain name=a/>
May 04, 2012 1:30:17 AM org.apache.axis.utils.Admin main
SEVERE: <service name=a/>
May 04, 2012 1:30:17 AM org.apache.axis.utils.Admin main
SEVERE: </undeploy>
May 04, 2012 1:30:17 AM org.apache.axis.utils.Admin main
SEVERE: <list/>
Exception in thread "main" java.lang.IllegalArgumentException: Usage: Admin client|server <xml-file>
at org.apache.axis.utils.Admin.main(Admin.java:277)

need help for this error...i got this error after runing client...

followed the example given the below link
http://www.slideshare.net/skkar2k2/writing-simple-web-services-using-eclipse-editor
 
reply
    Bookmark Topic Watch Topic
  • New Topic