can I use web service for common servlet web application ?
Frank Sikuluzu
Ranch Hand
Joined: Dec 16, 2003
Posts: 116
posted
0
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: 12269
1
posted
0
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
posted
0
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: 12269
1
posted
0
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