BasicAuthentication.jws Sample

The BasicAuthentication web service demonstrates how to secure a web service with basic authentication.

Concepts Demonstrated by this Sample

Location of Sample Files

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

  1. Start WebLogic Server in the appropriate domain.
  2. Launch the service either by opening it in WebLogic Workshop and selecting the Start operation or by entering http://localhost:7001/WebServices/security/transport/basicAuthentication/BasicAuthentication.jws in the address bar of your browser. If WebLogic Server is running in the appropriate domain on this machine and you have deployed the SamplesApp sample application, you may click here to run the sample.
  3. When prompted for a username and password, enter:
    • username: weblogic
    • password: weblogic
  4. Navigate to the Test Form tab of Test View, if necessary.
  5. Invoke the hello method.
  6. The message returned by the BasicAuthentication web service appears in the message traffic information for the hello method.

Related Topics

VeriCheck.jws Sample

WebLogic Workshop Security Overview