需要jar包:
commons-logging-1.0.4.jar
httpclient-4.3.2.jar
httpcore-4.3.2.jar
测试:
package http;
public class TestSoap {
public static void main(String[] args) {
String soapXml="<?xml version=\"1.0\" encoding=\"utf-16\"?>" +
"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/