XI: How-to on JDBC receiver response
The weblog helps you in performing a synchronous call to an external system which has an undocumented response message format. The challenge here is to construct the response message type to perform a synchronous call successfully. An approach has been suggested for synchronous DB calls. The same scenario can be extended to any other application.
Scenario
The sender initiates a synchronous call (by sending User Details (Username, password) to XI and the Response Details (role) are fetched from DB and sent back to the requesting application.

Fig 1.0 Synchronous DB scenario
Sequence of steps
Design Time
- For the Request message, create the required Data type, Message Type.
- The Response message is unknown, so create a Dummy Data type and a message type.
- Design Message Mappings– Request message mapping and Dummy Response message mapping.
- Design Outbound Message Interface.
- Design Inbound Message Interface. Notice that the dummy message type has been specified in Inbound Message Interface
- Design Interface Mappings.

Fig 2.0 Request Messge Mapping 
Fig 3.0 Response Message Mapping

Fig 4.0 Outbound Message Interface

Fig 5.0 Inbound Message Interface
Configuration Time
Create the required receiver determination, Interface determination & mapping and receiver Agreements.
Fig 7.0 Configuration Objects
Runtime
- Run the scenario by sending a request to XI Server.
- In SXMB_MONI, you will find that the response message mapping has failed.
- Copy the XML message and build your Data type, message type and Messgae Interface accordingly. Replace the Dummy message with hte newly created message type
- Now change the Message mappings and test your scenario again.

Fig 8.0 Message Monitoring in sxmb_moni

Fig 9.0 Error Message due to mapping exception

Fig 10.0 Response Message type Structure
Result
You should now be able to perform a synchronous call to an external system which has an undocumented response message format.



Thanks
Thanks