jQuery in Action, 2nd edition*
The moose likes XML and Related Technologies and the fly likes SOAP in an applet or servlet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "SOAP in an applet or servlet ?" Watch "SOAP in an applet or servlet ?" New topic
Author

SOAP in an applet or servlet ?

Nair Anoop
Ranch Hand

Joined: May 09, 2001
Posts: 68
Hi,
I have written a client to a webservice as a stand-alone Java application. I would now like to make the same web based.
My question is :
1. Can the SOAP functions work from a servlet?
2. Can the SOAP functions work from an applet (If I use Swing for my GUI) ?
Thanks,
Anoop
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
"1. Can the SOAP functions work from a servlet?"
Sure - in fact the Apache SOAP package has several examples
"2. Can the SOAP functions work from an applet (If I use Swing for my GUI) ?"
A SOAP message is just plain HTML so there is no reason an applet could not talk to a SOAP server - remember you would have to make the XML parser available to the applet. Swing or not-Swing makes no difference.
Loads of SOAP references at: http://www.lanw.com/books/javasoap/soapref.htm
Bill

[This message has been edited by William Brogden (edited June 28, 2001).]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: SOAP in an applet or servlet ?
 
Similar Threads
How to Send Session Object to Servlet through Applet
How to capture popup window close event.
how can i call a applet from a javascript functions???
from a applet how can i call a servlet??
Applet to Servlet session problem