...
You can control the response format setting type modifier. There are really three different scenarios:
Input | Output | Message type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
XML or JSON | JSON | <Message Type="JSON"/> | Forcing the response to JSON irrespective of Input format | |||||||||
JSON | XML | <Message Type ="XML"/> | Forcing the response to XML irrespective of Input format | |||||||||
XML or JSON | XML or JSON | <Message Type="XML or JSON"/> In the TQL/Policy FacetType Definition; Set the Message Type based on input. Note that Message Type available as part of the Request Object.
| Forcing the response based on input format; If input is XML; the format will be XML If input is JSON; the format will be JSON. |