Search code examples
business-rulesibm-cloud

"A ruleset parameter of type XML is not supported in a JSON payload" exception when using the Business Rules service on Bluemix


I tried to use my XML data with the HTDS REST JSON API and I got the exception:

 "A ruleset parameter of type XML is not supported in a JSON payload"

Solution

  • I was trying to use the XML binding object model, which is not supported in the JSON format. Once I switched to the XML format, the error disappeared.