-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
jbossws-cxf-4.3.1
-
None
The functionnality of adding interceptors as stated in the documentation does not seem to work.
I have tested both the jboss-webservices.xml and {{ jaxws-endpoint-config.xml}} flavor did not succeed in JBoss EAP 6.3.0.
jboss-webservices.xml
<webservices xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.jboss.com/xml/ns/javaee /schema/jboss_web_services_1.3.xsd"> <config-name /> <config-file>WEB-INF/endpoint-config.xml</config-file> <property> <name>cxf.interceptors.in</name> <value>com.finin.jboss.samples.JBWS3192WorkaroundInterceptors</value> </property> </webservices>
and:
WEB-INF/endpoint-config.xml
<jaxws-config xmlns="urn:jboss:jbossws-jaxws-config:4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="urn:jboss:jbossws-jaxws-config:4.0 schema/jbossws-jaxws-config_4_0.xsd"> <endpoint-config> <config-name>com.finin.jboss.samples.SimpleWSS4JImpl</config-name> <property> <property-name>cxf.interceptors.in</property-name> <property-value>com.finin.jboss.samples.JBWS3192WorkaroundInterceptor</property-value> </property> </endpoint-config> </jaxws-config>
The interceptor:
JBWS3192WorkaroundInterceptor
package com.finin.jboss.samples; import org.apache.cxf.message.Message; import org.apache.cxf.phase.AbstractPhaseInterceptor; import org.apache.cxf.phase.Phase; public class JBWS3192WorkaroundInterceptor extends AbstractPhaseInterceptor<Message> { public JBWS3192WorkaroundInterceptor() { super(Phase.READ); } @Override public void handleFault(Message message) {} @Override public void handleMessage(Message message) throws Fault { throw new Fault(e); } }