无法通过使用 RestAPI 传递提示业务对象来刷新文档

问题描述

尝试通过向 http://localhost:6405/biprws/raylight/v1/documents/492808/parameters?formattedValues=true with body 发送 PUT 请求来刷新文档

  <parameters>
   <parameter optional="false" type="sapVariable" dpId="DP0" primary="true">
      <answer constrained="false" type="Text" keyType="Text">
         <info cardinality="Interval" keepLastValues="true">
            <lov hierarchical="true" nodeSelection="Any" partial="false" refreshable="true" searchable="true" mandatorySearch="false" searchScopes="Values,Keys" searchTargets="Database">
               <id>UNIVERSELOV_DS2.:M:STR:ZC_FISCPER_RANGE_MND</id>
               <updated>2021-02-22T16:19:41.000Z</updated>
              <intervals>
               <interval id="0">
                  <values>
                     <value id="2021001">FY2021 P01</value>
                     <value id="2021010">FY2021 P10</value>
                  </values>
               </interval>
              </intervals>
              <values>
              <value id="2021001">FY2021 P01</value>
              <value id="2021010">FY2021 P10</value>
              </values>
               <columns mappingId="0">
                  <column id="0" type="String">ZC_FISCPER_RANGE_MND</column>
               </columns>
            </lov>
         </info>
      </answer>
      <id>0</id>
   </parameter>
   <parameter optional="false" type="sapVariable" dpId="DP0" primary="true">
      <answer constrained="false" type="Text" keyType="Text">
         <info cardinality="Single" keepLastValues="true">
            <lov hierarchical="true" nodeSelection="Any" partial="false" refreshable="true" searchable="true" mandatorySearch="false" searchScopes="Values,Keys" searchTargets="Database">
               <id>UNIVERSELOV_DS2.:M:STR:ZV_AC_LEDGER</id>
               <updated>2021-02-22T16:19:41.000Z</updated>
               <values>
                  <value id="0L">Leading Ledger</value>
               </values>
               <columns mappingId="0">
                  <column id="0" type="String">ZV_AC_LEDGER</column>
               </columns>
            </lov>
         </info>
      </answer>
      <id>1</id>
   </parameter>
  <parameter optional="true" type="sapVariable" dpId="DP0" primary="true">
      <answer constrained="false" type="Text" keyType="Text">
         <info cardinality="Multiple" keepLastValues="true">
            <lov hierarchical="true" nodeSelection="Any" partial="false" refreshable="true" searchable="true" mandatorySearch="false" searchScopes="Values,Keys" searchTargets="Database">
               <id>UNIVERSELOV_DS2.:M:STR:ZC_PLANT_MUL</id>
               <updated>2021-02-22T16:19:42.000Z</updated>
               <values>
                  <value id="1014">Boone Dental FC</value>
               </values>
               <columns mappingId="0">
                  <column id="0" type="String">ZC_PLANT_MUL</column>
               </columns>
            </lov>
         </info>
      </answer>
      <id>2</id>
   </parameter>
</parameters>

但出现错误:

400 错误代码>

发生 JAXBException:cvc-complex-type.2.4.a:发现以元素“值”开头的无效内容。 '{value,cvalue}' 之一是预期的.. cvc-complex-type.2.4.a: 发现以元素 'values' 开头的无效内容。 '{value,cvalue}' 之一是预期的..

我该如何解决这个问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...