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 3)

Let us first take a look at our pom.xml since we will have declare quite a few dependencies to do the heavy lifting.



Important to notice is we have declared a dependency on the project 'movieDomain' we created in part 1.

My web.xml:


One thing important to remember is that your main application context file has to end with '-ws-servlet.xml' and in my case it's mapped to WEB-INF/demo-ws-servlet.xml. If you rename it you will find out the hard way your project will run into some exceptions.

I decided to have all webservice related requests mapped onto the url-pattern '/services/*', but that's upto you.

In part 4 of this serie we'll take a look at some other files.

No comments:

Post a Comment