2013-03-29 21 views
1

我想在DSS中实现以下请求结构,但我无法做到这一点。结构是如何在wso2中创建以下请求结构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> 

我已经尝试过输入映射,但不能实现上述结构。休息一切都很好。只需要此结构作为我的请求。请帮助我在此。提前感谢

回答

0

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

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

干杯, Anjana。