If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Saturday, October 9, 2010

Building webservices with Spring-WS (part 6)

Part 6 will take a closer look at the movieService interface/implementation and the endpoint.

Since all our service offers is finding movies by title the interface is very basic.



The implementation uses the DAO layer to fetch the collection of movies by title provided. We only have to take care of adapting our Movie to MovieWS classes.




I created a generic Adapter interface:


And a Abstract class DomainAdapterImpl which implements 1 method.



The adapters are easy 1 on 1 mappers from our application domain objects onto our webservice domain objects.











Part 7 will take a look at our applicationContext.

No comments:

Post a Comment