Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can I use web service for common servlet web application ?

 
Frank Sikuluzu
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just new to web service. I have a servlet web application, wondering if I can apply web service on it ? Can I use both web service and struts ? do I have to write code in a completely different way or can I just simply convert to web service ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A web service application can live happily on the same server as JSP, servlets, and so forth (if thats what you are asking.) You will have to write code to a particular toolkit library, such as AXIS, but you end up with servlets.
Bill
 
Frank Sikuluzu
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Brogden:
A web service application can live happily on the same server as JSP, servlets, and so forth (if thats what you are asking.) You will have to write code to a particular toolkit library, such as AXIS, but you end up with servlets.
Bill


So, assuming so far I have servlet, jsp, and some business Action classes. Does it make sense to say that most probably I should convert the "business action classes" part into web service ?

thanks,
frank
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
People expose "business action classes" as web services if there is a need to let other people access them directly. It would be entirely reasonable to have the same basic functionality exposed as both HTML/servlet/jsp web pages and as XML based web services.
Thats what Google and Amazon do after all.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic