At this point you should have a working web service. Try it out. The URLs are:
[path to CXFServlet] - List of web services[path to CXFServlet]/contactus?wsdl - WSDL for the Contact Us service[path to CXFServlet]/contactus/getMessages - getMessages operation. Take a look at
this and notice that, as promised, the individual messages don't contain the
firstNameLastName property, since we told Aegis to @IgnoreProperty.[path to CXFServlet]/contactus/postMessage?message=... - postMessage operationSo for example if you are running an out-of-the-box Tomcat instance then your URLs would be
http://localhost:8080/mywebserviceshttp://localhost:8080/mywebservices/contactus?wsdlhttp://localhost:8080/mywebservices/contactus/getMessageshttp://localhost:8080/mywebservices/contactus/postMessage?message=...replacing mywebservices with whatever you happened to use for your context
root.
That's it! If you want to learn how to consume web services using Spring 2.5 and CXF, please see my follow-up article Make Web Services Transparent with Spring 2.5 and Apache CXF 2.0.
Update (2008-09-03): Sam Brodkin was kind enough to create a Maven project for this article. Thanks Sam!