I am starting a web project in which I would like to have a RESTful Java back-end and a PHP front-end that consumes it (its my first time using REST, although I have a lot of experience with Java and PHP). I have found a few frameworks for this, namely the Guzzle PHP framework, and the Restlet Java framework. Now my question is whether or not I am on the right track. Are there any other technologies you would recommend for this system, or anything else I should take a look at? I'm thinking I wanna use Jetty or Tomcat as the server running the restlet, and normal Apache for the PHP.
Lastly, I would like to know what the advantages/disadvantages of each of the transfer protocols are when it comes to REST. I'm torn between XML and JSON. Any thoughts/links would be appreciated. Thanks!