Lin Claire [https://community.jboss.org/people/clairelin] created the discussion

"wsconsume issue: None of the policy alternatives can be satisfied"

To view the discussion, visit: https://community.jboss.org/message/791899#791899

--------------------------------------------------------------
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 becomes as below:

<wsp:Policy xmlns:wsp=" http://schemas.xmlsoap.org/ws/2004/09/policy 
http://schemas.xmlsoap.org/ws/2004/09/policy"; xmlns:oralgp=" 
http://schemas.oracle.com/ws/2006/01/loggingpolicy 
http://schemas.oracle.com/ws/2006/01/loggingpolicy"; xmlns=" 
http://schemas.xmlsoap.org/ws/2004/09/policy 
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
 
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 
http://schemas.oracle.com/ws/2006/01/securitypolicy"; xmlns:orawsp=" 
http://schemas.oracle.com/ws/2006/01/policy 
http://schemas.oracle.com/ws/2006/01/policy"; xmlns:xsi=" 
http://www.w3.org/2001/XMLSchema-instance 
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 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<wsp:Policy>
<sp:UsernameToken sp:IncludeToken=" 
http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient
 
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 
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 
org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl No assertion builder for 
type SupportingTokens registered.
23:28:37,967 ERROR  
https://community.jboss.org/message/791899#791899#791899/STDERR wsconsume 
issue: None of the policy alternatives can be satisfied 
javax.xml.ws.soap.SOAPFaultException: None of the policy alternatives can be 
satisfied.
23:28:37,967 ERROR  
https://community.jboss.org/message/791899#791899#791899/STDERR wsconsume 
issue: None of the policy alternatives can be satisfied     at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146)
23:28:37,967 ERROR  
https://community.jboss.org/message/791899#791899#791899/STDERR wsconsume 
issue: None of the policy alternatives can be satisfied     at 
$Proxy219.execute(Unknown Source)


Can anyone share your experience?

Thanks!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791899#791899]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to