Hi, I'm using cxf 2.6.1 and wss4j 1.6.6, and I get this error when I've
invoke the webserives:  [WSS4JInInterceptor] Security processing failed
(actions mismatch).

I've google this error but I can't find a solution.

This is may configuration:
<jaxws:inInterceptors>
                        <bean 
class="org.apache.cxf.interceptor.LoggingInInterceptor" />
                        <bean 
class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor"> 
                                <constructor-arg>
                                         <map>
                                                 <entry key="action" 
value="Timestamp Signature Encrypt"/> 
                                                 <entry key="decryptionPropFile"
value="META-INF/wssecurity_in.properties"/>
                                                 <entry key="signaturePropFile"
value="META-INF/wssecurity_in.properties"/> 
                                                 <entry 
key="passwordCallbackRef"><ref
bean="passwordCallback"/></entry>
                                                 <entry 
key="encryptionSymAlgorithm"
value="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>
                                                 <entry 
key="encryptionKeyTransportAlgorithm"
value="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
                                        </map>
                                        </constructor-arg>
                         </bean>
                </jaxws:inInterceptors>

                <jaxws:outInterceptors>
                        <bean 
class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
                        <bean 
class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor"> 
                                <constructor-arg>
                                        <map>
                                                <entry key="action" 
value="Timestamp Signature Encrypt"/>
                                                <entry key="timeToLive" 
value="300" /> 
                                                <entry 
key="passwordCallbackRef"><ref
bean="passwordCallback"/></entry> 
                                                <entry key="user" 
value="#######" /> 
                                                <entry key="signaturePropFile"
value="META-INF/wssecurity_out.properties"/>
                                                <entry 
key="signatureKeyIdentifier" value="DirectReference" /> 
                                                <entry key="signatureParts"
value="{Content}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
 
                                                <entry key="encryptionPropFile"
value="META-INF/wssecurity_out.properties"/> 
                                                <entry 
key="encryptionSymAlgorithm"
value="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/> 
                                                <entry 
key="encryptionKeyTransportAlgorithm"
value="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/> 
                                                <entry 
key="encryptionKeyIdentifier" value="SKIKeyIdentifier" /> 
                                                <entry  key="encryptionParts"
value="{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
                                                <entry key="encryptionUser" 
value="useReqSigCert" /> <entry
key="enableSignatureConfirmation" value="false" />
                                        </map>
                                </constructor-arg> 
                        </bean>
                </jaxws:outInterceptors>

And this is my in soap message:

----------------------------
ID: 9
Address: http://localhost:8080/biometria/BiometricService
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml;charset=UTF-8
Headers: {accept-encoding=[gzip,deflate], connection=[Keep-Alive],
Content-Length=[2661], content-type=[text/xml;charset=UTF-8],
host=[localhost:8080], SOAPAction=[""], user-agent=[Apache-HttpClient/4.1.1
(java 1.5)]}
Payload: <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ws="ws.biometria.com">
   <soapenv:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";><wsu:Timestamp
wsu:Id="TS-12"><wsu:Created>2012-08-01T17:53:01.679Z</wsu:Created><wsu:Expires>2012-08-01T18:03:01.679Z</wsu:Expires></wsu:Timestamp></wsse:Security></soapenv:Header>
   <soapenv:Body><xenc:EncryptedData Id="ED-14"
Type="http://www.w3.org/2001/04/xmlenc#Content";
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#";><xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/><ds:KeyInfo
xmlns:ds="http://www.w3.org/2000/09/xmldsig#";><wsse:SecurityTokenReference
wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey";
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd";><wsse:Reference
URI="#EK-B2CC4E4A32165847EA134384358169220"/></wsse:SecurityTokenReference></ds:KeyInfo><xenc:CipherData><xenc:CipherValue>UQ6tloLPInjzEL6eX6oeGdsCUj785To2oN8Nt5PRsEGXtz4MtDWhS2lGVV4f7ZY5GxEe/KcSWD3QJdJlyn9xiZk2Co1sk+aBX4PAxp7S1YdQbYZUUvMzcRh1iGrNZQXZN6l9rQfOIwFVxNIf6F+cmGyVTEOnaD1v6qe+UBdVXP42wbfp2jYelZ7DFEK7XJ4PzmVfTWQdpj6T2TV91P5KNc0DAK/GcomsWc0PiW9NtXcDx8hOtuBY0aG/NWZCrLFWgAx/F8iBBQArRtf0dL8JY2dKAq9hdj85B6JC1j0KIQvZkfPKI3LNP3dvGsZnVpMziVsOb09r0Jf9JHvNccCioaz0fw6pT/8wIXg6r2aEr1/mHQbjidgomAC/o/cwtSl7fAhHxvJ+oTUdGBqCA+Rf8FpaVgLH2fyc0GJKT9gp2sQQMx6y90ssKp6ZtX6b8aEd6xA1AUA7KGKmJkfYZqXUnwBQxzjwnbxEwZzn1+pNLTEOQsp1eXqEHnbgKBLMbDdkXbv2iTZAYJIjDhCWO5LfCgJupX3uUlcnwfmxdN5bamkXUyFyyHP9LCumju3EhnmKlZd8krDgmTPIlM3NJX8JTZq9dicpK50X49Wu/YMoCDqU0BtINOoNPFbgzB9/62cKlFGjw5UIlYY+WIfhwl7A/bvPt0OY7N+iN5nkW8L9vLscSSkvdoheXJfaY7GVq43iQkksTZZSMonjVRcwjuI0KFTA8yiC4zPOfr7Wimu85dm377gU1HbyjhR/rLPevAPWZflpmnPstIQkNQ86bqxx6h4OIIdkDWtiGiNC+KnDx2lQmZucz6btDt5Mr8uegwc8V9OdRTkO0PzzgvQUZ6fEaszx5G/bczPw4kh1TP+wgFYyLDlq600AKY2YDU7vLI17NUS6nmWX2pCiUUKy6GCAxGSWCDfAcNnzRhyJ1+OcLtXMnytjnG2ZIz/VwBU/2WQUgQsrcgkhlpqQWfZgcaOLwDIVyquUg6kUMculEozdKH3k5Po4VWlzRI5frJM1iWkZLTr9K24Af9nF6run8XC8ZPseddZVtEgFrEbjkV5qJDAwKEzZTrsermBhIbO67DdxfLqIwFy1OgxsybMc7Yy+Ahz1zt3eqh6a0rYozHzIbErhImmKURY9MorICoRLk2gTkAbpBQwpPkCq+QtzqwhI4cdMDKGyZhXIZVIxR94EJYryxIfN2t3NV4IOUSiWLvT41yRMNPgr1BViPpagkImDoE5OvJcOmOgSgoBM8X94Xfy0vQNvIAQUf+i/ORTb+c0syIoXxwv6/WDNh6YP0RUdMhcni4LbgU5A/AqY8i61oFs=</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></soapenv:Body>
</soapenv:Envelope>
--------------------------------------

Where is the problem?

Regards
Alejandro




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

Reply via email to