Similar to the Investigate web service developed during Tutorial:
Your First Web Service, but more fully developed. Demonstrates use of
conversations and Web Service controls.
Concepts Demonstrated by this Sample
-
Start WebLogic Server in the appropriate domain.
-
Launch the service either by opening it in WebLogic Workshop and selecting
the Start operation or by entering
http://localhost:7001/WebServices/creditReport/CreditReport.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.
-
Navigate to the Test Form tab of Test View, if necessary.
-
Enter any numeric value for ssn and invoke
the requestReport method.
-
If you click Refresh, log entries for calls to the two external services
will appear, to bank.startCustomerAnalysis
and irs.requestTaxReport.
-
After 10 seconds, bank will report back by
sending the onDeliverAnalysis callback.
The partial results will be forwarded to the client with an invocation of
CreditReport's onProgressNotify callback.
You must continually click Refresh to see method invocations on controls
and callbacks because there is no way to push these events to a browser.
-
At any time, you may navigate to the continue methods for CreditReport by
clicking on the conversation ID in the Message Log.
-
After 20 seconds, the irs Web Service
control will respond. Another onProgressNotify
callback is sent to the client, then finally a onReportDone callback ends
the conversation.
-
At any time before the conversation ends you may invoke getCurrentStatus.
-
At any time before the conversation ends you may invoke cancelReport,
which will in turn invoke cancel methods on the external services if they
are still pending.
-
Select log entries in the log to see the message traffic involved in each
interaction.