This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exposing a struts app as a web service?

 
Ben Ethridge
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming that it is a "well-designed" MVC struts app, is it easy to expose that strut app as a web service?

Ben
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A Struts application is Web application that interacts with humans. A web service interacts with programs. Therefore, turning a Struts application into a web service wouldn't really work.

However, a well-designed Struts app will have a model that has no dependencies on Struts or any other view framework. It would therefore be relatively easy to take some of those model classes and methods and give them a web service interface using one of the many tools available for turnig Java classes into web services.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic