The BasicAuthentication web service demonstrates how to secure a web service with basic authentication.
Use of basic authentication to secure a web service
This sample is located in the security/transport 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\transport\basicAuthentication\BasicAuthentication.jws
To Run the Sample
BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.sh