Hi,

Changing client configuration file to following made it worked. 

<jaxws:client name="{http://cxf5.test.com/}HelloWorldImplPort"; 
createdFromAPI="true">
                <jaxws:properties>
                        <entry key="ws-security.username" value="testuser" />
                        <entry key="ws-security.callback-handler"
value="com.test.cxf_client1.ClientPasswordCallback" />
                </jaxws:properties>
                
                <jaxws:inInterceptors><ref bean="logInBound" 
/></jaxws:inInterceptors>
                
                <jaxws:outInterceptors> <ref 
bean="logOutBound"/></jaxws:outInterceptors>
                                
</jaxws:client>

But I could not understand why I have to define spring configuration like
this and *not* like following

<jaxws:client id="helloClient" serviceClass="com.test.cxf5.HelloWorld"
                address="http://localhost:8080/cxf5/HelloWorld"; 
createdFromAPI="true">

...............
.............

</jaxws:client>

Where can I get documentation to read more about correct way to do
configuration?

Charles.



--
View this message in context: 
http://cxf.547215.n5.nabble.com/org-apache-cxf-ws-policy-PolicyException-No-username-available-cxf-2-70-tp5721900p5721905.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to