Building a new service from scratch
I’m building a very thin Web interface for an internal application. The back end is built using Java, and I’ll be providing a Web service for use by the front end, which is built using PHP and JavaScript. The question is, if you were starting from scratch today, what would you use to glue the two together?
Options include:
- Providing a SOAP service, and implementing the SOAP client in PHP. (This option is only included for completeness, I’m not going to implement it this way.)
- Providing a REST Web service that returns XML and implementing the client in PHP.
- Providing a REST Web service that returns XML and implementing the client in JavaScript.
- Providing a REST Web service that returns XML and using JavaScript and PHP as the client where appropriate.
- Providing a REST Web service that returns JSON and implementing the client in JavaScript.
I have been leaning toward the JSON solution, but I’m curious to know what other people think.
13 Comments