Chapter 15. WebSphere Data Interchange components 313
Figure 15-40 Using RFHUTIL to write a message
Below is the format of the sample message that will be put on the queue.
Example 15-1 Sample XML file
<?xml version="1.0" ?>
<OrderSR>
<Header typecode="00">
<PONum>4500000074</PONum>
<PODate>20021112</PODate>
Note: The file we have used here can be found in the additional materials:
xmlfile_NEW.xml
314 A B2B Solution using WebSphere Business Integration and WebSphere Business Connection
<Sender>
<Id>ITSO</Id>
<Qualifier>08</Qualifier>
</Sender>
<Receiver>
<Id>ITSO02</Id>
<Qualifier>08</Qualifier>
</Receiver>
</Header>
<DetailLoop>
<ItemNumber>000000000000000210</ItemNumber>
<LineItem>00110</LineItem>
<SubDetail>
<Description>madras</Description>
<Quantity>30</Quantity>
<UnitPrice>50000</UnitPrice>
<UnitOfMeasure>EA</UnitOfMeasure>
</SubDetail>
</DetailLoop>
<Trailer>
<ItemCount>1</ItemCount>
<TotalBucks>600000</TotalBucks>
</Trailer>
</OrderSR>
5. Select the Data tab in RFHUTIL to inspect the contents of the file.
6. Select the option XML as Data Format to display the message in an XML
layout.
Chapter 15. WebSphere Data Interchange components 315
Figure 15-41 The Data tab in RFHUTIL for XML data
You can make further changes, such as specifying the Format field in the
MQMD or adding an RFH2 header.
7. Switch back to the Main tab and select Write Q.
8. Verify the status in the information pane at the bottom.
9. Select Close Q to close the queue.
Important: WDIAdapter is the triggered program; the trigger monitor must be
up and running to enable the triggered program to be started. You can
configure to run the trigger monitor using the WebSphere MQ services
window.
316 A B2B Solution using WebSphere Business Integration and WebSphere Business Connection
You can now use RFHUTIL again to look at the translated message in the queue
EDI_OUT:
1. Fill in the name of the queue manager and the name of the queue (EDI_OUT)
on the Main tab of RFHUTIL.
2. Select the Read Q (or Start Browse) button.
3. Switch to the Data tab and verify the message content.
The translated EDI message is shown in Figure 15-42.
Figure 15-42 Generated EDI message
This completes the outbound configuration.

Get A B2B Solution using WebSphere Business Integration V4.1 and WebSphere Business Connection V1.1 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.