wood burning stoves 2.0*
The moose likes Spring and the fly likes Spring Roo and Spring WS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Roo and Spring WS" Watch "Spring Roo and Spring WS" New topic
Author

Spring Roo and Spring WS

cecilia fava
Greenhorn

Joined: Oct 26, 2011
Posts: 8
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

Joined: Jul 20, 2010
Posts: 63

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


Ken Rimple
ken.rimple@gmail.com
Co-author, Manning Spring Roo in Action
I teach for Chariot Solutions (Spring, Maven, Hibernate, other courses). Schedule here
Srini Penchikala
author
Greenhorn

Joined: May 01, 2012
Posts: 5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Roo and Spring WS