1 Reply Latest reply on Apr 5, 2013 10:11 AM by Viral Gohel

    wsconsume issue: No assertion builder for type {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}SupportingTokens registered

    Newbie

      Hi everyone,

       

      I use wsconsume w/ Maven and the function works fine. Last week we had a meeting and we decided to add a simple security. Now the WSDL(generated by Oracle) becomes as below:

       

      <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:oralgp="http://schemas.oracle.com/ws/2006/01/loggingpolicy" xmlns="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:orasp="http://schemas.oracle.com/ws/2006/01/securitypolicy" xmlns:orawsp="http://schemas.oracle.com/ws/2006/01/policy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wsu:Id="wss_username_token_service_policy">

      <sp:SupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">

      <wsp:Policy>

      <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">

      <wsp:Policy>

      <sp:WssUsernameToken10/>

      </wsp:Policy>

      </sp:UsernameToken>

      </wsp:Policy>

      </sp:SupportingTokens>

      </wsp:Policy>

       

      I did some google and already implemented HeaderHandler+handler-chain in my application. After starting JBoss, I run my testing tool and always get the below error:

       

      No assertion builder for type {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}SupportingTokens registered.

      javax.xml.ws.soap.SOAPFaultException: None of the policy alternatives can be satisfied.


      23:28:37,951 WARN  [org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl] No assertion builder for type {http://schemas

      .xmlsoap.org/ws/2005/07/securitypolicy}SupportingTokens registered.

      23:28:37,967 ERROR [STDERR] javax.xml.ws.soap.SOAPFaultException: None of the policy alternatives can be satisfied.

      23:28:37,967 ERROR [STDERR]     at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)

      23:28:37,967 ERROR [STDERR]     at $Proxy219.execute(Unknown Source)

       

      Can anyone share your experience?

       

      Thanks!