We have an old web application and would like to redo it as a web service, thus decoupling the main Perl implementation from the web presentation implementation. The idea is we can redo the UI in another language (Java seems to be the preference of the boss), but in my mind this exercise is useful even if we stick with Perl. Stripping out the HTML soup that is currently mixed with the code is going to be my job. Oh, joy.
But the part I am actually looking forward to is recasting this as a web service. I'm just having trouble figuring out what the modern best practices for creating web services are. The book Web Services with Perl (O'Reilly) came out six years ago, in 2002. A bit long in the tooth, maybe... is that book still a good reference?
Would prefer to do the API in a RESTful manner. The application is read / write, not just read, so writes will be done with posts. Is SOAP::Lite what I need? Or SOAP::Server? Or should I just skip SOAP altogether? I've used JSON on a project in the past and liked it; can it be part of a web services solution? (Not to say I like this hammer, now let me shape any problem into a nail, but JSON is a lot nicer to work with than, say, XML).
Am I even asking the right questions? Thoughts, anyone?