Chapter 26. Building and testing message flow for Retrieve 503
f. Sets the following business object top-level values:
• version = 3.0.0
• delta = FALSE
• verb = taken from input business object
• locale = en_US
g. Sets the following business object data values:
•XMLDeclaration
• Schema location (The JMS connector uses it for the application data.
h. Sets the following tenant object details:
• The output ID is taken from the input tenant object ID.
• The output name is taken from the input tenant object name.
• The output e-mail is taken from the input tenant object e-mail.
i. Sets the address object details.
j. Loops through, and for each input maintenance record, creates an output
maintenance record and formats the output.
k. Sets the last of the message properties.
Example 26-5 ResponseRetrieve
CREATE COMPUTE MODULE ResponseRetrieve
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
-- (Remove for mapping node
CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
-- *** Schema Declarations ***
-- Red Tenant Web Application
DECLARE Web_tenant NAMESPACE
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/Web_tenant';
DECLARE Web_tenant_tenant NAMESPACE
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/Web_tenant_tenant';
DECLARE Web_tenant_maintenance NAMESPACE
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/Web_tenant_maintenance';
DECLARE Web_tenant_maintenances NAMESPACE
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/Web_tenant_maintenances';
DECLARE Web_tenant_apartment NAMESPACE
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/Web_tenant_apartment';
DECLARE Web_tenant_apartments NAMESPACE
'http://www.ibm.com/websphere/crossworlds/2002/BOSchema/Web_tenant_apartments';