IBM Version 5 Universal Remote User Manual


 
Chapter 9. Developing XML Web services 205
Example 9-6 Updated DADX file
<dadx:retrieveXML>
<dadx:DAD_ref>passengerList.dad</dadx:DAD_ref>
<dadx:XML_override>
/Flight/@flightNo=:flightNo
</dadx:XML_override>
<dadx:parameter name="flightNo" type="xsd:string"/>
</dadx:retrieveXML>
<storeXML>
The storeXML operation stores an XML document in a set of relational tables
using the XML Collection access method. The DAD document that defines the
collection must use the RDB_node mapping method. This operation is
implemented by dxxShredXML if a <DAD_ref> element is used and by
dxxInsertXML if a <collection_name> element is used. The dxxShredXML stored
procedure takes a DAD document and an XML document as input.
Deploying the Web service
having the dadx file ready, we can create and deploy the web service. We use the
Web services wizard, to generate the Java client proxy that we are using in a
client application:
1. Select
TravelGroup folder.
2. Copy passengerList.dad into the TravelGroup directory.
3. Right-click
New—>Other, and in the New window create a Web Service from
Web Services category, click
Next.
4. Select
DADX Web Service as Web service type.
5. Set Java proxy as client proxy type, set check boxes, as shown in Figure 9-19,
and click
Next.