如何添加客户端过滤器以在泽西派遣?我想添加gzip过滤器。我创建调度对象并以这种方式调用WS。
Service svc = Service.create(qname);
svc.addPort(qname, HTTPBinding.HTTP_BINDING, server + uri);
Dispatch<Object> dispatcher = svc.createDispatch(qname, jaxbContext,
Service.Mode.PAYLOAD);
requestCtx.put(MessageContext.HTTP_REQUEST_METHOD, method);
Response r = (Response) dispatcher.invoke(o);