Calling a Synchronous Web Service Sample

A Page Flow that makes a invokes a synchonous method of a web service.

Concepts Demonstrated by this Sample

Location of Sample Files

In the SamplesApp, the sample is located at:

SamplesApp/WebApp/controls/webservice/helloworld/HelloWorldController.jpf

On the local file system, the sample is located at:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebApp\controls\webservice\helloworld\HelloWorldController.jpf

To Run the Sample

  1. Start WebLogic Server in the Workshop domain.

    • On Microsoft Windows systems, run

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

    • On Linux or Solaris systems, run:

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

  2. Launch the service either by opening it in WebLogic Workshop and clicking the Start button or by entering http://localhost:7001/WebApp/controls/webservice/helloworld/HelloWorldController.jpf in the address bar of your browser. If WebLogic Server is running in the Workshop domain on this machine, you may click here to run the sample.

  3. Click Get message from the HelloWorld web service.

Related Topics