Soap request from JavaFX
I was searching on net to know how to send soap request from JavaFX. I could not get a straight answer. While looking at the JavaFX 1.0 API, I did find java.io.http.HttpRequest class to send HTTP asynchronous requests. The document says that you can invoke RESTful weservices through the class. Since HTTPRequest supports POST as a method for sending the request, I though of sending the SOAP message over HTTP. I wrote a simple utility class to facilitate the same and it did help me achieve my goal. The example is a simple class keping in mind that usually soap request are known through WSDL but we do mistakes while preparing a complete XML soap message. I would like to share some of the points for anyone trying the same. 1. Create a simple SoapRequest class as follows: public class SoapRequest extends HttpRequest{ 2. Define the variables to create xml tags, Soap envelop and body tags // xml header var XML_HEADER:String = ""; // namespace for SOAP 1.1 message, this...