“在Bluemix上为Business Rules服务提取请求中的规则集参数值时出错。在SignatureXMLBinding.deserialize”

时间:2015-11-16 22:50:58

标签: ibm-cloud business-rules

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

  

ilog.rules.res.decisionservice.IlrDecisionServiceException:出错时出错   从请求中提取规则集参数值。在   com.ibm.rules.htds.binding.xml.SignatureXMLBinding.deserialize(SignatureXMLBinding.java:176)   在   com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.extractInParameters(RESTDecisionServiceServlet.java:954)   在   com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.execute(RESTDecisionServiceServlet.java:921)   在   com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.onMessage(RESTDecisionServiceServlet.java:843)   在   com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.handleRequest(RESTDecisionServiceServlet.java:750)   在   com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.doPost(RESTDecisionServiceServlet.java:737)   在   com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.doPost(RESTDecisionServiceServlet.java:732)   在javax.servlet.http.HttpServlet.service(HttpServlet.java:595)at   javax.servlet.http.HttpServlet.service(HttpServlet.java:668

1 个答案:

答案 0 :(得分:0)

我已将请求标头中的内容类型指定为XML:

"$@"

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

 "Content-type" : "application/xml"