• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

can I use web service for common servlet web application ?

 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic