Client client = ClientProxy.getClient(port); client.getOutInterceptors(); HashMap<String, String> hmap = new HashMap<String, String>(); hmap.put("sch", "http://your/schemas"); client.getRequestContext().put("soap.env.ns.map", hmap); client.getRequestContext().put("disable.outputstream.optimization", "true");
或者采用其他数据绑定方式