Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help for writing webservice

 
Sayaly Kolhe
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • 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..
 
Tim Moores
Bartender
Posts: 2891
46
  • Mark post as helpful
  • send pies
  • 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.
 
karuna ragu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic