getOutInterceptors().add(new SwAOutInterceptor()); if (isProvider && mode == Mode.MESSAGE) { in.add(new SAAJInInterceptor());
client.getEndpoint() .getBinding().getBindingInfo().getName())); client.getInInterceptors().add(new SAAJInInterceptor()); client.getInInterceptors() .add(new MessageModeInInterceptor(clazz,
@Override public void handleMessage(Message message) throws Fault { if(message instanceof SoapMessage){ message.getInterceptorChain().add(new SAAJInInterceptor()); }else{ //Skip for not SOAP messages } } }
@Override public void handleMessage(Message message) throws Fault { if(message instanceof SoapMessage){ message.getInterceptorChain().add(new SAAJInInterceptor()); }else{ //Skip for not SOAP messages } } }
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)); } }
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)); } }
private SAAJInInterceptor saajIn = new SAAJInInterceptor();
public static SOAPPart parseSoapMessage(String samlRequest) throws XMLStreamException { XMLStreamReader xmlStreamReader = xmlInputFactory.createXMLStreamReader(new StringReader(samlRequest)); SoapMessage soapMessage = new SoapMessage(Soap11.getInstance()); SAAJInInterceptor.SAAJPreInInterceptor preInInterceptor = new SAAJInInterceptor.SAAJPreInInterceptor(); soapMessage.setContent(XMLStreamReader.class, xmlStreamReader); preInInterceptor.handleMessage(soapMessage); SAAJInInterceptor inInterceptor = new SAAJInInterceptor(); inInterceptor.handleMessage(soapMessage); return ((SOAPPart) soapMessage.getContent(Node.class)); }
private SAAJInInterceptor saajInterceptor = new SAAJInInterceptor(); public InInt(String p) { super(p);
_svrFactory.getInInterceptors().add(new org.apache.cxf.binding.soap.saaj.SAAJInInterceptor()); _svrFactory.getInInterceptors().add(new org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor()); _svrFactory.getOutInterceptors().add(new LoggingOutInterceptor());
_svrFactory.getInInterceptors().add(new org.apache.cxf.binding.soap.saaj.SAAJInInterceptor()); _svrFactory.getInInterceptors().add(new org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor()); _svrFactory.getInInterceptors().addAll(getConfiguredInterceptors(config.getInInterceptors()));
SAAJInInterceptor saajIn = new SAAJInInterceptor(); saajIn.handleMessage(message);
SAAJInInterceptor saajIn = new SAAJInInterceptor(); saajIn.handleMessage(message);
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); }
properties.put(WSHandlerConstants.PW_CALLBACK_REF, authenticationHandler); svrFactory.getInInterceptors().add(new WSS4JInInterceptor(properties)); svrFactory.getInInterceptors().add(new SAAJInInterceptor()); } else { svrFactory.getInInterceptors().add(new CXFWSS4JInInterceptor(soapServiceDefinition.getBusSecurity()));
getOutInterceptors().add(new SwAOutInterceptor()); if (isProvider && mode == Mode.MESSAGE) { in.add(new SAAJInInterceptor());
client.getEndpoint() .getBinding().getBindingInfo().getName())); client.getInInterceptors().add(new SAAJInInterceptor()); client.getInInterceptors() .add(new MessageModeInInterceptor(clazz,
protected void init() { // configure handlers try { initHandlers(); } catch (final Exception e) { throw new WebServiceException("Error configuring handlers", e); } // Set service to invoke the target ejb service.setInvoker(new EjbMethodInvoker(this.bus, beanContext)); // Remove interceptors that perform handler processing since // handler processing must happen within the EJB container. final Endpoint endpoint = getEndpoint(); removeHandlerInterceptors(bus.getInInterceptors()); removeHandlerInterceptors(endpoint.getInInterceptors()); removeHandlerInterceptors(endpoint.getBinding().getInInterceptors()); removeHandlerInterceptors(endpoint.getService().getInInterceptors()); // Install SAAJ interceptor if (endpoint.getBinding() instanceof SoapBinding && !this.implInfo.isWebServiceProvider()) { endpoint.getService().getInInterceptors().add(new SAAJInInterceptor()); } // Install WSS4J interceptor ConfigureCxfSecurity.configure(endpoint, port); }
protected void init() { // configure handlers try { initHandlers(); } catch (Exception e) { throw new WebServiceException("Error configuring handlers", e); } // Set service to invoke the target ejb service.setInvoker(new EjbMethodInvoker(this.bus, beanContext)); // Remove interceptors that perform handler processing since // handler processing must happen within the EJB container. Endpoint endpoint = getEndpoint(); removeHandlerInterceptors(bus.getInInterceptors()); removeHandlerInterceptors(endpoint.getInInterceptors()); removeHandlerInterceptors(endpoint.getBinding().getInInterceptors()); removeHandlerInterceptors(endpoint.getService().getInInterceptors()); // Install SAAJ interceptor if (endpoint.getBinding() instanceof SoapBinding && !this.implInfo.isWebServiceProvider()) { endpoint.getService().getInInterceptors().add(new SAAJInInterceptor()); } // Install WSS4J interceptor ConfigureCxfSecurity.configure(endpoint, port); }
@Override protected void init() { // configure handlers try { initHandlers(); } catch (Exception e) { throw new WebServiceException("Error configuring handlers", e); } BeanContext beanContext = bus.getExtension(BeanContext.class); service.setInvoker(new EJBMethodInvoker(this, this.bus, beanContext)); Endpoint endpoint = getEndpoint(); /* * Remove interceptors that perform handler processing since * handler processing must happen within the EJB container. */ removeHandlerInterceptors(bus.getInInterceptors()); removeHandlerInterceptors(endpoint.getInInterceptors()); removeHandlerInterceptors(endpoint.getBinding().getInInterceptors()); removeHandlerInterceptors(endpoint.getService().getInInterceptors()); // install SAAJ interceptor if (endpoint.getBinding() instanceof SoapBinding && !this.implInfo.isWebServiceProvider()) { endpoint.getService().getInInterceptors().add(new SAAJInInterceptor()); } }