This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Need help for writing webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Need help for writing webservice" Watch "Need help for writing webservice" New topic
Author

Need help for writing webservice

Sayaly Kolhe
Greenhorn

Joined: Mar 19, 2012
Posts: 15
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Feb 28, 2012
Posts: 2
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

Joined: Mar 19, 2012
Posts: 15
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
 
jQuery in Action, 2nd edition
 
subject: Need help for writing webservice
 
Similar Threads
how do i solve this error caused due to problem in spring initiation on tomcat
JAAS in WebServices
spring framework to write server side code
Help with REST web service
WSDL question