I’m going to be beginning a project soon that will be written in Java and will communicate with a PHP based web service. I initially thought with what I was reading that Jax-RS would be the right solution because I thought that my Java side would need to be a Web Service. Since then I’ve learned it won’t, but it’ll have a lot of communicating to do with Java. Is Jax-RS a good solution if I’m sending requests and receiving responses? Is there another tool or just standard java?
Share
If you want to consume (RESTful) web services, then you could use a so-called client-API. Most JAX-RS implementations like Jersey or RESTEasy include one, e.g:
Consuming RESTful Web Services With the Jersey Client API
Do note that this isn’t yet part of the JAX-RS standard, but it soon will be: