![]() |
|
![]() | ||
|
Subject:
Converting an existing servlet as web service
Category: Computers > Programming Asked by: rovingeyes-ga List Price: $25.00 |
Posted:
04 Mar 2003 09:45 PST
Expires: 03 Apr 2003 09:45 PST Question ID: 170522 |
I am planning to make an existing servlet as web service. The application logic is implemented primarily in the "doPost" method. The client to this servlet will be an applet. The communication between this servlet and client will be via SOAP. I'm using Tomcat 4.1 and Apache Axis for web services. Now my question is two fold: 1) How do I make this servlet as web service and how do I expose "doPost" method? 2) How do I post data or requests to this servlet from the applet via SOAP. Instead of giving me a winding reply, I'd appreciate a simple example. Let's say you show me a simple Hello World servlet which takes in a <string> as input and returns "Hello <string>" through SOAP. Remember only POST method is to be used. Obviously the client will post this message via SOAP. So finally what I require is: - Servlet (returning Hello <string> and implementing "doPost" and "onMessage", which is used for SOAP messaging). - Applet (posting the "<string>" via SOAP to the servlet end-point). - WSDL describing the service. - WSDD describing the deployment of the servlet as web service. You have to do this for Tomcat + Axis. For the example client can even be a standalone java client and need not be necessarily an applet. |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |