SAAJOutInterceptor saajOut = new SAAJOutInterceptor(); out.add(saajOut); out.add(new MessageModeOutInterceptor(saajOut,
"SOAP/HTTP"); } else if (m == Service.Mode.MESSAGE) { SAAJOutInterceptor saajOut = new SAAJOutInterceptor(); client.getOutInterceptors().add(saajOut); client.getOutInterceptors().
private List<AbstractSoapInterceptor> commonEndpointOutInterceptors() { List<AbstractSoapInterceptor> outInterceptors = new ArrayList<>(); outInterceptors.add(new SoapResponseHeaderInterceptor()); outInterceptors.add(new SAAJOutInterceptor()); outInterceptors.add(reportSignatureInterceptor); return outInterceptors; } }
@Override public void handleMessage(SoapMessage message) throws Fault { if (message.getContent(SOAPMessage.class) == null) { SAAJOutInterceptor saajout = new SAAJOutInterceptor(); saajout.handleMessage(message); } authManager.validateResponse(message); }
public static final void setupWSS4JChain(InterceptorProvider endpoint, Map<String, Object> inProps, Map<String, Object> outProps) { if (null != inProps && !inProps.isEmpty()) { endpoint.getInInterceptors().add(new SAAJInInterceptor()); endpoint.getInInterceptors().add(new WSS4JInInterceptor(inProps)); // if WS Security is used with a JAX-WS handler (See EjbInterceptor), we have to deal with mustUnderstand flag // in WS Security headers. So, let's add an interceptor endpoint.getInInterceptors().add(new WSSPassThroughInterceptor()); } if (null != outProps && !outProps.isEmpty()) { endpoint.getOutInterceptors().add(new SAAJOutInterceptor()); endpoint.getOutInterceptors().add(new WSS4JOutInterceptor(outProps)); } }
public static final void setupWSS4JChain(final InterceptorProvider endpoint, final Map<String, Object> inProps, final Map<String, Object> outProps) { if (null != inProps && !inProps.isEmpty()) { endpoint.getInInterceptors().add(new SAAJInInterceptor()); endpoint.getInInterceptors().add(new WSS4JInInterceptor(inProps)); // if WS Security is used with a JAX-WS handler (See EjbInterceptor), we have to deal with mustUnderstand flag // in WS Security headers. So, let's add an interceptor endpoint.getInInterceptors().add(new WSSPassThroughInterceptor()); } if (null != outProps && !outProps.isEmpty()) { endpoint.getOutInterceptors().add(new SAAJOutInterceptor()); endpoint.getOutInterceptors().add(new WSS4JOutInterceptor(outProps)); } }
private static Logger logger = LoggerFactory .getLogger(EnterpriseServiceMonitoringOutInterceptor.class); private SAAJOutInterceptor saajOut = new SAAJOutInterceptor();
public static void main(String[] args) { DoubleItService service = new DoubleItService(); DoubleItPortType port = service.getDoubleItPort(); Client client = ClientProxy.getClient(port); client.getOutInterceptors().add( new ClientInterceptors.ValueCheckOutInterceptor()); client.getOutInterceptors().add( new SAAJOutInterceptor()); client.getOutInterceptors().add( new ClientInterceptors.AddSOAPHeaderOutInterceptor()); // add MAX_VALUE to message context, for client LogicalHandler to use ((BindingProvider) port).getRequestContext().put("MAX_VALUE", "200"); // normal case doubleIt(port, 100); // ValueCheckOutInterceptor will reduce to MAX_VALUE of 200 (note // answer of 400 will be wrong as a result) doubleIt(port, 300); // ValueCheckOutInterceptor will raise "can't double 20" Fault doubleIt(port, 20); // service in interceptor will raise "can't double 30" Fault doubleIt(port, 30); }
_svrFactory.getInInterceptors().add(new org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor()); _svrFactory.getOutInterceptors().add(new LoggingOutInterceptor()); _svrFactory.getOutInterceptors().add(new org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor());
_svrFactory.getOutInterceptors().addAll(getConfiguredInterceptors(config.getOutInterceptors())); _svrFactory.getOutInterceptors().add(new LoggingOutInterceptor()); _svrFactory.getOutInterceptors().add(new org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor());
protected void setupEndpoint(Endpoint ep) { resetPartTypes(ep.getBinding()); Class<?> fmt = Source.class; if (ep.getBinding() instanceof SoapBinding) { ep.getInInterceptors().add(new SAAJInInterceptor()); SAAJOutInterceptor out = new SAAJOutInterceptor(); ep.getOutInterceptors().add(out); ep.getOutInterceptors().add(new CxfMessageSoapHeaderOutInterceptor()); ep.getOutInterceptors().add(new MessageModeOutInterceptor(out, ep.getBinding().getBindingInfo().getName())); fmt = SOAPMessage.class; } else { ep.getOutInterceptors().add(new MessageModeOutInterceptor(Source.class, ep.getBinding().getBindingInfo().getName())); } ep.getInInterceptors().add(new MessageModeInInterceptor(fmt, ep.getBinding().getBindingInfo().getName())); ep.put(AbstractInDatabindingInterceptor.NO_VALIDATE_PARTS, Boolean.TRUE); // need to remove the wrapper class and holder interceptor removeInterceptors(ep.getInInterceptors(), REMOVING_IN_INTERCEPTORS); removeInterceptors(ep.getOutInterceptors(), REMOVING_OUT_INTERCEPTORS); }
SAAJOutInterceptor saajOut = new SAAJOutInterceptor(); out.add(saajOut); out.add(new MessageModeOutInterceptor(saajOut,
"SOAP/HTTP"); } else if (m == Service.Mode.MESSAGE) { SAAJOutInterceptor saajOut = new SAAJOutInterceptor(); client.getOutInterceptors().add(saajOut); client.getOutInterceptors().
((BindingProvider)mtomPort).getRequestContext().put(Message.SCHEMA_VALIDATION_ENABLED, validationType); SAAJOutInterceptor saajOut = new SAAJOutInterceptor(); SAAJInInterceptor saajIn = new SAAJInInterceptor();
((BindingProvider)mtomPort).getRequestContext().put(Message.SCHEMA_VALIDATION_ENABLED, validationType); SAAJOutInterceptor saajOut = new SAAJOutInterceptor(); SAAJInInterceptor saajIn = new SAAJInInterceptor();