Databases Reference
In-Depth Information
Repeat this step for the output schema element, but select the
getQuoteResponse
element. Click
OK
and this will create our
StockQuote
process within our
composite, as shown in the following screenshot:
Within the composite, double-click the
StockQuote
process to open it in the BPEL
editor. You will see that, by default, JDeveloper has created a skeleton BPEL process,
which contains an initial
<receive>
activity to receive the stock quote request,
followed by a
<reply>
activity to send back the result (as we discussed in the earlier
section -
Synchronous Messaging
). In addition, it will have created two variables;
inputVariable
, which contains the initial stockquote request, and
outputVariable
,
in which we will place the result to return to the requestor.
If you look in the
Projects
section of the
Application Navigator
, you
will see that it contains the file
StockQuote.wsdl
. This contains
the WSDL description (including partner link extensions) for our
process. If you examine this, you will see that we have a single
operation;
process
, which is used to call the BPEL process.
Calling the external web services
The next step is to call our external web services. For our stock quote service, we are
going to use Xignite's quotes web service, which delivers delayed equity price quotes
from all U.S. stock exchanges (
NYSE
,
NASDAQ
,
AMEX
,
NASDAQ OTC Bulletin
Board
, and
Pink Sheets
).
Before you can use this service, you will need to register with
Xignite. To do this, or for more information on this and other
services provided by Xignite, go to
www.xignite.com
.