Spring 3.1.1 with Spring-WS 2.1.1
SqlServer 2008 R2
I've built a functioning webapp to verify connectivity to my database.
Now I'd like to break the webapp into two pieces - a contract-last SOAP-based web service
and a client.
And I'm stumbling quite a bit, drowning in hundreds of examples using hundreds of different
techniques across several versions of Spring.
I've placed XML annotations into my POJOs as such
and built a com.foo.forms.web.endpoint package and placed within it
and corresponding FormsEndpointImpl
Note that some of the stuff in web.xml and servlet-context.xml are leftovers from
when I converted my webapp project into this newfangled web-service project. It no
doubt needs to be replaced by some other stuff.
So this proto-web-service compiles and produces a warfile which I can deploy.
But I know I'm missing some steps in between.
So I plea for wisdom from Those Who Have Gone Before - I'm at Point A, how do I get
to Point B? What configurations/code/steps do I need to add to arrive at a
functionng web service based upon the above parameters, and how do I call it?
Given you use Apache CXF as an implementation for JAX-WS and want to use Spring.
You need to set up CXF and Spring correctly. See Point 1.
Since Spring will control/manage your JAX-WS bean. See Point 1 + Point 2.
You can access the wsdl based up on Point 2. (See address="/FormsEndpointService"). See Point 3.