HelloWorld.jws Sample

A very simple web service with a single synchronous method. Illustrates a WebLogic Workshop web service in its simplest form.

Concepts Demonstrated by this Sample

Location of Sample Files

This sample is located in the root folder of the WebServices project in the SamplesApp sample application. In the file system the location is:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebServices\HelloWorld.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/HelloWorld.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. Navigate to the Test Form tab of Test View, if necessary.
  4. Invoke the Hello method. The return value is the string "Hello, World!", of course.
  5. Select log entries in the Message Log to see the message traffic involved in each interaction.

Related Topics

Guide to Development with WebLogic Workshop

Structure of a JWS File

@common:operation Tag

Test View