Google Answers Logo
View Question
 
Q: Converting an existing servlet as web service ( No Answer,   0 Comments )
Question  
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.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy