Simpapp Sample

A sample that demonstrates use of the Tuxedo Control by exposing the Tuxedo service, TOUPPER in the Tuxedo simpapp application. TOUPPER is a Tuxedo service that converts text to uppercase. The simpapp sample is delivered as one of the Web Service projects within the TuxSampleApp application.

Concepts Demonstrated By This Sample

Use of theTuxedo Control in a simple web service.

To Run the Sample

Before running the simpapp.jws sample, be sure you have accomplished the tasks defined in "Before You Begin."

  1. Start the Tuxedo server that advertises TOUPPER in the simpapp application.
  2. Start WebLogic Workshop. From the Start menu, choose Programs ->WebLogic Platform 8.1 ->WebLogic Workshop.
  3. From the File menu, select Open -> Application to open an existing Application in WebLogic Workshop. Click Browse and select <BEA_HOME>/weblogic81/samples/partners/Tuxedo/TuxSampleApp/TuxSampleApp.work.
  4. Expand the simpleWS node in the Application pane by clicking the + sign in front of simpleWS. When you expand the simpleWS node, you will see a controls folder that contains simpapp.jcx. The simpleWS node also contains Simpapp.jws.
  5. Open the controls folder and double-click the simpapp.jcx file.
  6. Click the Source View tab. Verify the source code has the following method signature.
  7. public String toUpper (String msg) ; 
    
  8. Select Simpapp.jws from the Application pane and click the Design View tab. Verify that remoteSvc specifies toUpper.
  9. From the Debug menu, select Start.
  10. When the test browser displays, enter text in the msg field and click the toUpper button.
  11. The results display at the bottom of the browser window when the browser refreshes.

Related Topics