This content has been marked as final.
Show 1 reply
-
1. Re: org.apache.cxf.ws.policy.PolicyException: No username available
cqmcris Dec 4, 2018 9:54 AM (in response to cqmcris)I solved this issue.
I realized that is not necessary to handle the soap message, I only added the next two lines in WebserviceCaller.configureService method.
bindingProvider.getRequestContext().put("ws-security.username", "username");
bindingProvider.getRequestContext().put("ws-security.password", "password");