Forums Register Login

creating REST webservices in java and consume them in android

+Pie Number of slices to send: Send
hi,
i want to get started with creating Rest webservices in java and consume those services in android.....
any help to get started would be great help for me..
iam a newbie for webservices any beginners guide of the same???

thankyou
+Pie Number of slices to send: Send
Check out the Jersey library. Its web site has a bunch of documentation. On the Android side you can use the built-in HttpClient library to consume those services. I'm sure if you search for "android httpclient jax-rs example/tutorial" or some such phrase you'll find multiple introductory articles as well.
+Pie Number of slices to send: Send
thankyou Tim...
that was really helpfull
i m following this link
http://www.ibm.com/developerworks/library/x-android-jax-rs/

iam finding difficulty in finding these jars
jersey-bundle-1.4.jar
C:\Jersey\jersey-archive-1.4\lib\asm-3.1.jar
C:\Jersey\jersey-archive-1.4\lib\jsr311-api-1.1.1.jar

where i can i get them???
+Pie Number of slices to send: Send
That is exactly what Google and Maven repositories can do for you.
+Pie Number of slices to send: Send
i found them..
+Pie Number of slices to send: Send
You shouldn't use Jersey 1.4, but the latest version - 1.12 at the moment, I believe.
+Pie Number of slices to send: Send
yup thank you;
i have used jersey 1.12.

now i have successfully tried an example to connect android with rest webservices....
+Pie Number of slices to send: Send
how could i pass data from android to remote database through webservices using JAX-RS...
FOUND no good example so far
+Pie Number of slices to send: Send
The JAX-RS class would access the DB like any other Java class would; what, excatly, are you looking for in the example? Or, to put it another way: what are struggling with? Are you familiar with JDBC?
+Pie Number of slices to send: Send
yes iam comfortable with jdbc...
can i connect it lyk i do with my nbormal java class???
arent the syntaxes different???
+Pie Number of slices to send: Send
Why would the syntax be different?
+Pie Number of slices to send: Send
 

Suzzane Pinto wrote:yes iam comfortable with jdbc...
can i connect it lyk i do with my nbormal java class???
arent the syntaxes different???


Suzzane kindly use real words.
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3470 times.
Similar Threads
Web Services
Help with REST web service
Rest Services
New to WS, Jax-Ws vs Axis and how to get started in eclipse
Where to begin?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:00:59.