Hello, I'm trying to create a CXF client accessing a Metro web service that requires (via WS-SecurityPolicy statements) Username/Password Tokens--this[1] web service, in particular. Configuring the SOAP client with this cxf.xml:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <jaxws:client name="{http://www.example.org/contract/DoubleIt}DoubleItService" createdFromAPI="true"> <jaxws:properties> <entry key="ws-security.username" value="alice"/> <entry key="ws-security.password" value="clarinet"/> </jaxws:properties> </jaxws:client> </beans> Is returning this error: [INFO] Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: None of the policy alternatives can be satisfied. [INFO] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:141) [INFO] at $Proxy38.doubleIt(Unknown Source) [INFO] at com.mycompany.webservice.client.WSClient.doubleIt(WSClient.java:18) [INFO] at com.mycompany.webservice.client.WSClient.main(WSClient.java:11) Can anyone can see what the problem might be? If not, prior to tracing into the CXF source code, is there any other troubleshooting I can or should do in order to determine the problem? Thanks, Glen [1] http://www.jroller.com/gmazza/entry/implementing_ws_security_using_usernametokens#MetroUT2-4 -- View this message in context: http://www.nabble.com/Debugging-%22None-of-the-policy-alternatives-can-be-satisfied%22-WS-SecPol-error-tp24384805p24384805.html Sent from the cxf-user mailing list archive at Nabble.com.
