del.icio.us Digg DZone Reddit StumbleUpon
Web Services with Spring 2.5 and Apache CXF 2.0 - Willie Wheeler
« Previous | 1 | 2 | 3 | 4

Let 'er Rip

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 operation

So for example if you are running an out-of-the-box Tomcat instance then your URLs would be

  • http://localhost:8080/mywebservices
  • http://localhost:8080/mywebservices/contactus?wsdl
  • http://localhost:8080/mywebservices/contactus/getMessages
  • http://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!

Social bookmarks: del.icio.us Digg DZone Reddit StumbleUpon
« Previous | 1 | 2 | 3 | 4
Show comments (46)

Post a comment

Your name:
Your e-mail address (won't be displayed):
Your web site (optional):
example: www.xyz.com
Your comment:
Please help us prevent comment spam:
Spring in Practice
My brother and I are writing Spring in Practice for Manning!

What's New?

2008-10-20 - I've added a new mailing list feature to the site. Sign up to receive e-mail updates about new articles.
2008-09-30 - We've released chapter 4 (User registration) and chapter 5 (Authentication) of Spring in Practice.
2008-09-11 - By popular demand, I've added an RSS feed to the site.
Home | Consulting | Tech Articles | Mailing List | About | Contact | Spring Blog
Copyright © 2008 Wheeler Software, LLC.