i want to make web service for my android client basically i m android developer and i have no idea to develop a web service
please send a good tutorials link so that i can start with basic.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So, I’m guessing you want to create the webservice in Java yeh? I’d use Jersey (which is the reference implementation of JAX-RS).
The website above has pretty good documentation on how to use Jersey, but in short you can do the following:
Download the jars and add them to your project or add the following to your pom.xml file
Annotate your Resource pojo class with @Path to specify the url for that resource.
Annotate your methods with @Path to specify more fine grained urls.
Annotate your method arguments with @PathParam if you want to get access to the parts of the url path designated for that resource method.
Annotate your methods with @GET, @POST, @PUT or @DELETE to specify which HTTP method they will respond to.
Annotate your methods with @Produces/@Consumes to specify what MIME type the resource accepts or produces.
An example of a class that might use some or all of these methods is as follows:
That’s the basics. It’s as easy as that. Knock yourself out.