WS-Security UserToken Sample

The WS-Security UserToken sample demonstrates synchronous communication between two web services both of which are secured with WS-Security security, especially the use of username and password in WS-Security.

Concepts Demonstrated by this Sample

Location of Sample Files

This sample is located in the security/wsse 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\wsse\usertoken

To Run the Sample

  1. Start WebLogic Server in the appropriate domain.
    • On Microsoft Windows systems, from the Start menu, choose BEA WebLogic Platform 8.1-->Examples-->WebLogic Workshop Examples-->Start Workshop with Sample Applications.
    • On Linux or Solaris systems, run:

      BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.sh

  2. Launch the sample by entering http://localhost:7001/WebServices/security/wsse/usertoken/webServiceA/WebServiceA.jws?.EXPLORE=.TEST in the address bar of a web browser. If WebLogic Server is running in the samples domain on your machine, you may click here to run the sample.

  3. Click the invokeHello method.
  4. Click Refresh, until the Message Log displays the method webServiceControl.hello.
  5. Select log entries in the Message Log to see the message traffic involved in each interaction.

Related Topics

Web Service Security