CSV Message Responders are designed to send responses with a CSV/delimited message payload. This responder simplifies the use of CSV by allowing you to utilize XML. You can model your CSV response payload as an XML document; the responder then automatically converts the XML to CSV before sending the message. If the responder receives a CSV message, the responder can convert the message to XML so that you can define message correlations using XPaths or attach tools. Message Responders are protocol agnostic. The transport protocol or API to access a responder is defined in the deployment configuration of the PVA.
You can create a CSV Message Responder tool directly from the Add Responder wizards.
Since there is no schema associated with the CSV format, you would switch to Literal view, paste in your CSV message, and then switch to Form Input view to parameterize the message.
For details on configuring standard Message Responder behavior (for example, correlations, performance profiles, and so on), see Message Responder Overview.
In addition to the standard Message Responder options, the following conversion options are available for CSV Message Responders:
These options are used converting in both directions: XML to CSV and CSV to XML
For example, with First row specifies column names set to true, a ',' separator, and double quotes as the quote character, messages would be converted as follows.
CSV:
Last,First Dafoe, Daniel "O'Hara", Maureen |
XML:
<?xml version="1.0" encoding="Cp1252"?> <root> <row> <Last>Dafoe</Last> <First>Daniel</First> </row> <row> <Last>O'Hara</Last> <First>Maureen</First> </row> </root> |