Posted by jwalgemoed on January 24, 2011
This weekend I created a small application that could gather information from the DISCOGS website using a RESTFul webservice they so very kindly provided. While I already had some previous experience using the RestTemplate provided by Spring I figured it would be a good idea to start there.
As with most of things IT related it didn’t all go according to plan. The RestTemplate I used didn’t support the gzip stream that was returned by the REST service published by Discogs. So how to fix this? There are two ways. Read more »
Posted by jwalgemoed on December 7, 2010
While working on a project recently I was faced with the task to define a couple of webservices. As my application is completely based on Spring, the logical choice (in my book) would be using Spring-WS. After some deliberation I decided to go with classic Soap based webservices, as the application that would be calling my services did not support REST. Also, Axis 1 was already in place, so integration with that framework was considered important.
I did however want the solution to be as hassle-free as possible. Even though it’s contract first, I didn’t want to spend a lot of time messing about with XSD’s and WSDL and decided toÂ try and generate both of these artifacts based on my Java code.Â As JAXB2 supportsÂ annotation basedÂ definition of the resulting XML structure IÂ decided to use that framework to fulfil my marshalling needs. Spring-WS integration with JAXB2 is pretty decent, so why not? Read more »