aspose file tools*
The moose likes Web Services and the fly likes can I use web service for common servlet web application ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "can I use web service for common servlet web application ?" Watch "can I use web service for common servlet web application ?" New topic
Author

can I use web service for common servlet web application ?

Frank Sikuluzu
Ranch Hand

Joined: Dec 16, 2003
Posts: 116
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

Joined: Mar 22, 2000
Posts: 12785
    
    5
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

Joined: Dec 16, 2003
Posts: 116
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

Joined: Mar 22, 2000
Posts: 12785
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can I use web service for common servlet web application ?