HTTPURLConnection WebService Client
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.ProtocolException; import java.net.URL; import java.net.URLConnection; public class Test1 { private static final String serviceUrl = "http://www.webservicex.net/stockquote.asmx"; public static void main(String args[]) { try { final URL url = new URL(serviceUrl); StringBuilder message = new StringBuilder(" "); message.append(" "); message.append(" "); message.append(" "); message.append(" ").append("@").append(" "); message.append(" "); message.append(" "); message.append(" "); // Create the connection where we're going to send the file. URL...