Right tool for the job
Tuesday, February 5th, 2008I feel the need to repost my latest posting from The Server Side here…
James Watson writes:
Personally I would like to see a good open source framework for REST based web services. I’m not sure if it’s the way to go but WSDL 2.0 spec should theoretically support REST. I’m unaware of any tools that help with creating these types of WSDLs.
Don’t use WSDL 2.0 for REST. It’s an ugly way of doing RESTful services IMNSHO. There are plenty of great toolkits out there for helping you build RESTful web services. The ones I have my eye on are:
- Restlets
- JAX-RS RI - aka Jersey allows you to build services easily with annotations. CXF has support in the works too.
- Apache Abdera - Build AtomPub services with Abdera. These are quite powerful…
Please keep in mind that REST and SOAP programming models don’t mix well. There is this complete fallacy going around (I succumbed to it too at one point) that you can use the same service class or description to build a RESTful and a SOAP based service. However, the interactions and mappings should end up being completely different from one to the other! One is message based and one is resource based. You’re going to have to design your service differently as they’re two completely different beasts.
Use the best tool for the job. You’ll save yourself time and a lot of hassle.