HttpURLConnection向Servlet写入流方法实例代码教程。
public static void main(String[] args) throws IOException {
String r = AnalysisXML.getXml(); //要传入的xml字符串
String path =”http://localhost:8080/axis/services/bxserver”;
java.net.URL url = new java.net.URL(path);
// 打开连接
HttpURLConnection connection = (Http[......]