2
votes

I have php webservices available on web server, I am trying to develop an Android project which will consume responses of those.

Jersey (JAX-RS) provides a client library to communicate with RESTful webservices, which can be used in my android app (client).

So I have some questions:

  • Does Jersey (JAX-RS) works with php webservices on server, or it needs Jersey web-services on server
  • If yes, Is it good idea to do it with Jersey
  • What are the other options which I have, to consume my php web services in android app
2
hi, i think yes you can..but why Jersey? you can use framework Volley for consume.. - DevOps85
thnaks for the suggestion! Does it provide all the implementation support? I am looking into it,. need to study a bit about it..never worked on volley. - Anil Bhaskar
i post more details in an answer - DevOps85

2 Answers

0
votes

Yes you can consume your PHP web services in Android.

I advise to use Volley Framework (Google);Volley Framework

And here you can check many example:

Example Volley Frameworks

0
votes

I have made some understanding about the topic since I asked about it, and here are some info If someone comes searching for the same thing later.

No need to learn a new thing: Jersey JAX-RS to consume the web services into an android app. (If you are not already into it.)

So to consume the web services into an android app, we have following options:

library that makes networking for Android apps easier and most importantly, faster.

And it follows RPC-style networking operations, also have interface so you can spend more time implementing your logic.

PS: Thanks Antonio for your suggestion.