如何在wso2dss中创建以下请求结构



我想在DSS中实现以下请求结构,但我无法做到这一点。结构是

:<body>
 <p:CreateReady xmlns:p="http://www.axisSculper.omg/xmlnv/BCC/">
  <!--1 or more occurrences-->
  <tns:Resistance xmlns:tns="http://www.axisSculper.omg/xmlnv/BCC/">
   <!--Exactly 1 occurrence-->
   <cct:ID xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:ID>
   <!--0 or more occurrences-->
   <cct:Description xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:Description>
   <!--0 or more occurrences-->
   <tns:ResCategory>
    <!--Exactly 1 occurrence-->
    <cct:ID xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:ID>
    <!--Exactly 1 occurrence-->
    <cct:CategorySourceID xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:CategorySourceID>
    <!--0 or more occurrences-->
    <cct:Description xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:Description>
    <!--0 to 1 occurrence-->
    <xs:ISO15926ReferenceURI xmlns:xs="http://www.axisSculper.omg/xmlnv/BCC/">?</xs:ISO15926ReferenceURI>
    <!--0 or more occurrences-->
    <tns:ResEntry>
     <!--Exactly 1 occurrence-->
     <cct:IDInChargeInSource xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:IDInChargeInSource>
     <!--Exactly 1 occurrence-->
     <cct:SourceID xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:SourceID>
     <!--0 to 1 occurrence-->
     <tns:ID>?</tns:ID>
     <!--0 to 1 occurrence-->
     <cct:SourceOwnerID xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:SourceOwnerID>
     <!--0 to 1 occurrence-->
     <cct:Tag xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:Tag>
     <!--0 or more occurrences-->
     <cct:Description xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:Description>
     <!--0 to 1 occurrence-->
     <xs:Inactive xmlns:xs="http://www.axisSculper.omg/xmlnv/BCC/">?</xs:Inactive>
     <!--0 or more occurrences-->
     <tns:ResProperty>
      <!--Exactly 1 occurrence-->
      <cct:ID xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:ID>
      <!--0 to 1 occurrence-->
      <cct:DataType xmlns:cct="http://www.axisSculper.omg/xmlnv/BCC/">?</cct:DataType>
     </tns:ResProperty>
    </tns:ResEntry>
   </tns:ResCategory>
  </tns:Resistance>
 </p:CreateReady>
</body>

我已经尝试过输入映射,但无法实现上述结构。其余的都很好。只需要这个结构作为我的要求。请帮帮我。提前感谢

目前在DSS中不能有这样的请求格式。在定义输入映射时,您必须坚持使用数据服务为您创建的请求格式。因此,为了克服这个问题,您可以使用WSO2 ESB创建一个代理服务来接受这种消息格式,并从它接收数据服务。基本上,您可以使用XPath从代理服务提取参数,使用PayloadFactory中介以数据服务所需的格式创建消息,并将其发送出去。

在即将发布的DSS版本中,计划在数据服务本身中支持自定义消息输入格式。

欢呼,小河。

最新更新