Databases Reference
In-Depth Information
We need to specify a number of values to configure the
Invoke
activity, namely:
•
Name
: This is the name we want to assign to the
Invoke
activity, and can be
any value. So just assign a meaningful value such as
GetQuote
.
Partner Link
: This is the
Partner Link
whose service we want to invoke; it
should already be set to use
XigniteQuotes
, as we have already linked this
activity to that
Partner Link
. An alternate approach would be to click on
the corresponding spotlight icon, which would allow us to select from any
Partner Link
already defined to the process.
Operation
: Once we've specified a
Partner Link
, we need to specify which
of its operations we wish to invoke. This presents us with a drop-down
list, listing all the operations that are available, for our purpose, select
GetSingleQuote
.
Input:
Here we must specify the variable that contains the data to be passed
to the web service that's being invoked. It is important that the variable is
of type
Message
, and that it is of the same message type expected by the
Operation
(that is, as defined in the WSDL file for the web service).
The simplest way to ensure this is by getting JDeveloper to create the variable
for you. To do this, click on the green plus sign to the right of the input
variable field. This will bring up the
Create Variable
window, as shown in
the following screenshot. You will notice that JDeveloper creates a default
name for the variable (based on the name you gave the invoke operation and
the operation that you are calling). You can override this with something
more meaningful (for example,
QuoteInput
).
Output
: Finally, we must specify the variable into which the value returned
by the web service will be placed. As with the input variable, this should be
of the type
Message
and corresponds to the output message defined in the
WSDL file for the selected operation. Again, the simplest way to ensure this
is to get JDeveloper to create the variable for you.
•
•
•
•
Once you've specified values for all these fields, as illustrated in the preceding
screenshot, click
OK
.