Investigate.jws Sample

This sample represents the state of the Investigate web service after completion of Step 8: Client Application of Tutorial: Your First Web Service.

Note: if you are planning on using the tutorial, you should not run the Investigate.jws service before you begin building with the tutorial.

# Concepts Demonstrated by this Sample

- Use of a database control

- Use of a Service control

- Use of a JMS control

- Use of a EJB control

- Use of a timer control

- Declaration and use of a client callback

- Use of Conversations

# Location of Sample Files

This sample is located in the tutorials folder of the samples WebLogic Workshop project. In the file system the location is:

BEA_HOME\weblogic700\samples\workshop\applications\samples\tutorials\Investigate.jws

# How to Run the Sample

To run this web service:

1. Start WebLogic Server in the appropriate domain.

   - On Microsoft Windows systems, from the Start menu navigate to:

   BEA WebLogic Platform 7.0->WebLogic Workshop->WebLogic Workshop Examples->Start Examples Server.

   - On Linux or Solaris systems, run:

   BEA_HOME/weblogic700/samples/workshop/startWebLogic.sh

2. Launch the service either by opening it in WebLogic Workshop and selecting the Start operation or by entering http://localhost:7001/samples/tutorials/Investigate.jws in the address bar of your browser. If WebLogic Server is running in the appropriate domain on this machine, you may click here to run the sample.

3. Navigate to the Test Form tab of Test View, if necessary.

4. Enter a value for the first taxID and invoke the requestCreditReportAsynch method. A message is returned asynchronously (through a callback to the client). For taxID, you should enter one of the following 9 digit numbers supported by the database: 123456789, 111111111, 222222222, 333333333, 444444444, 555555555.

5. The Investigate service invokes the Bankruptcies database through a database control. The database tells Investigate whether an applicant is bankrupt.

6. The Investigate service then invokes the CreditCardReport service via a service control. The CreditCardReport service responds through the callback creditCardDataResult. The CreditCardReport service provides a report on an applicant's credit cards.

7. Next Investigate invokes the JMS through the CreditScoreControl control. The JMS responds with a callback. The JMS provides a credit score based on the applicant data retrieved from the database and the credit card report.

8. Next Investigate invokes a EJB, which gives a final credit evaluation for the applicant.

9. Finally, the Investigate service issues a callback, onCreditReportDone, to the client.

10. Select log entries in the Message Log to see the message traffic involved in each interaction.

Related Topics

Controls: Using Resources from a Web Service

Service Control: Using Another Web Service

Maintaining State with Conversations

Using Callbacks to Notify Clients of Events

Asynchronous Web Services

Test View