This code is a simple, general purpose SOAP client in Java that uses XML Request File. This examples, we are sending a XML Request file with SOAP URL and getting back SOAP response as XML file.
The Java code, it is opening up an HTTP connection, connecting through the proxy (you can comment it out if you are not using any proxy in your environment), sending the appropriate XML to invoke a remote method, and then reading the XML response returned by the server.