I have created a web service using JAX-WS and trying to add Simple UsernameToken security to the web service. The application is deployed on Websphere 8.5.
I found the following link which helps to add the usernameToken from RAD -> Services tab quite easily for JAX-RPC based web services but the same feature is not available for JAX-WS type web services.
RAD - How to add username token for JAX RPC in websphere application server admin console
Can anybody help to provide some similar kind of steps or another possible simple solution to achieve the same for JAX-WS web services?
<Soapenv:Header>
<wsse:Security soapenv: mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>user</wsse: Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText">paas</wsse: Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
Thanks.