A web service that demonstrates the reference of externally defined principals and roles. Using the annotations @common:security run-as-principal and run-as, the web service references an externally defined principal and role. The sample also shows how to access WebLogic Workshop's Security API.
Use of @common:security run-as-principal
Use of @common:security run-as
Referencing externally defined principals and roles
Use of WebLogic Workshop Security API
This sample is located in the security/createUser folder of the WebServices project in the SamplesApp sample application. In the file system the location is:
BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebServices\security\createUser\createUser.jws
To Run the Sample
BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.sh