一、使用HttpURLConnection访问webservice服务(发送SOAP请求)
public static void send() throws Exception {
URL url = new URL(WsConstants.MAPPING_URL);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type", "text/xml;charset=UTF-8")