简体   繁体   English

调用容器“xxxxxx”时出错:在 Redhat Business Central 上解组输入时出错

[英]Error calling container "xxxxxx": Error unmarshalling input on Redhat Business Central

I'm new in Redhat Business Central and exploring.我是 Redhat Business Central 的新手,正在探索。 I have created the application and deployed it successfully.我已经创建了应用程序并成功部署了它。 I have a problem when I send a POST to the server.我向服务器发送 POST 时遇到问题。

I'm getting an error "Error unmarshalling input".我收到错误“解组输入错误”。 I have attached the screen shoot of my objects and rule我附上了我的对象和规则的屏幕截图

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

Try by Adding "lookup": null, in the starting of the request.尝试在请求的开头添加"lookup": null, So now th request will look like所以现在请求看起来像

{
  "lookup" : null,
  "commands" : [ 

My Request was like this我的请求是这样的

{
  "lookup" : null,
  "commands" : [ 
    {
    "insert" : 
      {
          "out-identifier":"Name_of_container",
          "return-object":"true",
      "object" :{

          "class_name":
          {
              "obj1":"val1",
              "obj2":"val2",
          }
      }
      }
    },
    {
    "fire-all-rules" : {}
    } ]
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM