"Error when extracting the ruleset parameter value from the request. at SignatureXMLBinding.deserialize" 用于 Bluemix 上的业务规则服务

"Error when extracting the ruleset parameter value from the request. at SignatureXMLBinding.deserialize" for the Business Rules service on Bluemix

我使用 REST API 执行部署在 Business Rules for Bluemix 上的规则。但是,我看到以下错误消息:

ilog.rules.res.decisionservice.IlrDecisionServiceException: Error when extracting the ruleset parameter value from the request. at com.ibm.rules.htds.binding.xml.SignatureXMLBinding.deserialize(SignatureXMLBinding.java:176) at com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.extractInParameters(RESTDecisionServiceServlet.java:954) at com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.execute(RESTDecisionServiceServlet.java:921) at com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.onMessage(RESTDecisionServiceServlet.java:843) at com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.handleRequest(RESTDecisionServiceServlet.java:750) at com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.doPost(RESTDecisionServiceServlet.java:737) at com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.doPost(RESTDecisionServiceServlet.java:732) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668

我在请求 headers 中将内容类型指定为 XML:

 "Content-type" : "application/xml"

然而,我以JSON格式传递数据。一旦我按如下方式修复了内容类型,我就能够成功执行规则。

 "Content-type" : "application/json"