• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Roo and Spring WS

 
cecilia fava
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working with Web Services. I am studying Spring Web Services but I'd like use Spring Roo. Spring Roo has an add on or something like that in order to use Spring Ws?
Thanks! (The book is talking about this topic: Spring Ws?)
 
Ken Rimple
author
Ranch Hand
Posts: 63
Mac OS X Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will defer the WS talk to as I wonder if t is achievable via Spring Integration, but you can easily create an add-on that installs the spring-ws dependency and configures an application context.

For an example look at the Spring Roo Jms add-on source code. I would approach it in the same way as that add-on.

If this is a one-off configuration, and not something you want to write an add-on for, just mount spring-WS dependencies in your project Pom and configure the servlet in web.xml and the services appropriately.

REST support is built in to Spring Roo projects as it uses Spring MVC's RESTful controller support. This is not the case with SOAP services though.

Ken
 
Srini Penchikala
author
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring Integration has support for web service adapter (checkout this article for a good example on WS: http://krams915.blogspot.com/2011/03/spring-integration-2-integrating-jdbc.html), but if you want to create a SOAP based web service as a one time requirement, I agree with Ken that doing outside Roo. I havent been creating any SOAP web services lately; I use Spring MVC to create REST web services which are easy to test as well, using a command line tool like cURL.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic