Databases Reference
In-Depth Information
You may remember when we created our Echo service back in Chapter 2 , Writing
your First Composite , JDeveloper automatically created a simple WSDL file for our
service, with a single input and output field. For our StockQuote service, we need
to pass in multiple fields (that is, Stock Ticker and Currency). So, to define the input
and output messages for our BPEL process, we are going to make use of a predefined
schema StockService.xsd , as shown in the following code snippet (for brevity,
only the parts which are relevant to this example are shown. However, the complete
schema is provided in the downloadable samples ile for the topic).
<?xmlversion="1.0"encoding="windows-1252"?>
<xsd:schemaxmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://xmlns.packtpub.com/StockService"
targetNamespace="http://xmlns.packtpub.com/StockService"
elementFormDefault="qualified">
<xsd:element name="getQuote" type=" tGetQuote"/>
<xsd:element name="getQuoteResponse" type=" tGetQuoteResponse"/>
<xsd:complexType name="tGetQuote">
<xsd:sequence>
<xsd:element name="stockSymbol" type="xsd:string"/>
<xsd:element name="currency" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="tGetQuoteResponse">
<xsd:sequence>
<xsd:element name="stockSymbol" type="xsd:string"/>
<xsd:element name="currency" type="xsd:string"/>
<xsd:element name="amount" type="xsd:decimal"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Importing StockService schema
To override the default input schema element generated by JDeveloper, click on
Browse Input Elements … (the magnifying glass circled in the previous screenshot).
This will bring up the Type Chooser , as shown in the following screenshot, which
allows you to browse all schemas imported by the composite and select an element
from them.
 
Search WWH ::




Custom Search