How to set up WebLogic 10.3.3. security for JAX_WS web services?
- by Roman Kagan
I have quite simple task to accomplish - I have to set up the security for web services ( basic authentication with hardcoded in WLES user id and password). I set the web.xml (see code fragment below) but I have tough time configuring WebLogic. I added IdentityAssertionAuthenticator Authentication Provider, set it as Required, modified DefaultAuthenticator as Optional and I went to deployed application's security and set the role to "thisIsUser" and at some point it worked, but not anymore (I redeployed war file and set web service security the same way but no avail.) I'd greatly appreciate for all your help.
<security-constraint>
<display-name>SecurityConstraint</display-name>
<web-resource-collection>
<web-resource-name>ABC</web-resource-name>
<url-pattern>/ABC</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>thisIsUser</role-name>
</auth-constraint>
</security-constraint>