cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apcmto <apc...@gmail.com>
Subject Re: CXF WS-Security: Security processing failed (actions mismatch)
Date Wed, 14 Jan 2015 12:06:41 GMT
I've found the solution to this error.

The definition of the interceptor in WsTest2 was wrong. It should be defined
in "<jaxws:inInterceptors>" not in "<cxf:bus >". Like:

		/<jaxws:inInterceptors>
			<bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
			<bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
				<constructor-arg>
					<map>
						<entry key="action" value="UsernameToken" />
						<entry key="passwordType" value="PasswordText" />
						<entry key="passwordCallbackRef">
							<ref bean="serverPasswordCallback" />
						</entry>
					</map>
				</constructor-arg>
			</bean>
			<bean class="es.wstest2.services.interceptors.Interceptor" />
		</jaxws:inInterceptors>/

Instead of:

        /<cxf:bus>
                <cxf:features>
                         <cxf:logging />  
                </cxf:features>
                <cxf:inInterceptors>
                        <bean
class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
                        <bean
class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
                                <constructor-arg>
                                        <map>
                                                <entry key="action"
value="UsernameToken" />
                                                <entry key="passwordType"
value="PasswordText" />
                                                <entry
key="passwordCallbackRef">
                                                        <ref
bean="serverPasswordCallback" />
                                                </entry>
                                        </map>
                                </constructor-arg>
                        </bean>
                        <bean
class="com.wstest2.services.interceptors.Interceptor" />
                </cxf:inInterceptors>
                <cxf:outInterceptors>

                </cxf:outInterceptors>
        </cxf:bus>/



--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-WS-Security-Security-processing-failed-actions-mismatch-tp5752754p5753016.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message