0

私は Wso2 ESB と DataService サーバーに取り組んでいます。

端末側で CURL コマンドを実行している間、ESB に関しては、JSON は次のようになります。

{"Body":{"Id":0,"Body":       [{"UserGroupId":-1,"UserGroupCode":"NONE","UserGroupName":"NONE","UserGroupCreatedById":-1,"UserGroupCreatedOn":"/Date(1340024633000)/","UserGroupModifiedById":-1,"UserGroupModifiedOn":"/Date(1340024633000)/","UserGroupSortOrder":9999,"UserGroupStatus":1,"UserGroupVersion":1,"UserGroupSourceType":1,"UserGroupDetailArray":[{"UserGroupDetailId":-1,"UserGroupId":-1,"UserGroupCode":"NONE","UserGroupName":"NONE","UserGroupDetailSlNo":1,"UserId":-1,"UserCode":"GBADMIN","UserName":"Administrator"},{"UserGroupDetailId":-149999779,"UserGroupId":-1799999942,"UserGroupCode":"SHSBCPLUM","UserGroupName":"HSBCMALAD_Plumber","UserGroupDetailSlNo":9,"UserId":-2147483640,"UserCode":"r2416","UserName":"AlexRupan"}]}]},"Current":"","ETag":"","First":"","From":"","Id":"","Last":"","Next":"","Previous":"","ReplyTo":"","Status":200,"To":"","Total":5}

このため、ネストされたクエリを使用してDSSで試しましたが、機能していません。上記の私のDS。enter code here.

    <data name="musergroup_DataService" serviceNamespace="http://ws.wso2.org/dataservice">
   <config id="default">
      <property name="carbon_datasource_name">USCProduction</property>
   </config>

  <query id="selectallusergroups" useConfig="default">
      <sql>select usergroupdetailid as UserGroupDetailId ,musergroup.usergroupid as UserGroupId,usergroupcode as UserGroupCode,usergroupname as UserGroupName,slno as UserGroupDetailSlNo,muser.userid as UserId,usercode as UserCode,username as UserName from muser join musergroupdetail on muser.userid= musergroupdetail.userid join musergroup on musergroupdetail.usergroupid=musergroup.usergroupid</sql>
      <result element="UserGroupDetailArray" rowName="UserGroupDetailArray">
         <element column="UserGroupDetailId" name="UserGroupDetailId" xsdType="integer"/>
         <element column="UserGroupId" name="UserGroupId" xsdType="integer"/>
         <element column="UserGroupCode" name="UserGroupCode" xsdType="string"/>
         <element column="UserGroupName" name="UserGroupName" xsdType="string"/>
         <element column="UserGroupDetailSlNo" name="UserGroupDetailSlNo" xsdType="integer"/>
         <element column="UserId" name="UserId" xsdType="integer"/>
         <element column="UserCode" name="UserCode" xsdType="string"/>
         <element column="UserName" name="UserName" xsdType="string"/>
      </result>
   </query>
   <query id="select_id_columns" useConfig="default">
      <sql>select musergroup.usergroupid as UserGroupId,usergroupcode as UserGroupCode,usergroupname as UserGroupName from musergroup join musergroupdetail on musergroup.usergroupid=musergroupdetail.usergroupid</sql>
      <result element="Body" rowName="Datalist">
         <element column="UserGroupId" name="UserGroupId" xsdType="integer"/>
         <element column="UserGroupCode" name="UserGroupCode" xsdType="string"/>
         <element column="UserGroupName" name="UserGroupName" xsdType="string"/>
         <call-query href="selectallusergroups" requiredRoles=""/>
      </result>
   </query>

   <operation name="selectallusergroups">
      <call-query href="selectallusergroups"/>
   </operation>
   <operation name="select_id_columns">
      <call-query href="select_id_columns"/>
   </operation>
</data>

@私の質問:-どうすれば、Dss を持つ Esb プロキシ サービスでエンドポイントを作成できますか。

出力がJSONを超えているため、端末側でcurlコマンドを実行している間。

4

1 に答える 1