Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP in an applet or servlet ?

 
Nair Anoop
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic