Define the MDC Relationships
In this task, you define the relationship between the input message (the request message) and the output message (the response message).
Before you begin
This task assumes that you are already editing the projects/purchase/extensions/src/main/resources/extension-rest-mdc.xm file.
Procedure
-
Create the XML nodes.
Add the following code.
<container_relationship id='op_return_type'> … </container_relationship>
Note: The start and end XML node must surround all container relationships. The relationship definition between an input message (the request message) and the output message (the response message) is wrapped in this node. -
Define the relationship between the request MATRIXX Data Container (MDC) and the response MDC. Add the following code between the node defined in step 1.
<relationship id='DemoRequestSubscriberPurchase'> <target_container>DemoResponseSubscriberPurchase</target_container> </relationship>
These nodes indicate that when a DemoRequestSubscriberPurchase is received, a DemoResponseSubscriberPurchase is returned.
- Save the file.