除了为结果集提供不同的名称之外,还有其他解决方案吗?
如果我在 Web 服务中有 3 个方法并且所有方法都导出相同
然后我觉得将它们重命名为Customers1、Customers2和Customers3对我来说很不自然
这是我的示例,它在 .NET 中导致问题,因为有 3 个方法都返回 Entries->Entry
<data name="ws_getSubnoCCInfo" serviceNamespace="com.test.ws">
<config id="tro">
<property name="driverClassName">oracle.jdbc.driver.OracleDriver</property>
<property name="url">jdbc:oracle:thin:xxx/yyy@10.10.10.10:1521/DB</property>
<property name="username">xxx</property>
<property name="password">yyy</property>
</config>
<query id="subnoHasCCSQL" useConfig="tro">
<sql>select case when count(*) > 0 then 'OK' else 'NOK' end hasCC from ccinfo where subno = :subno</sql>
<result element="Entries" rowName="Entry">
<element column="hasCC" name="hasCC" xsdType="string"/>
</result>
<param name="subno" sqlType="STRING"/>
</query>
<query id="idNoHasCCSQL" useConfig="tro">
<sql>select case when count(*) > 0 then 'OK' else 'NOK' end hasCC from ccinfo cc, tabs.crm_departement ui where cc.contrno = ui.contrno and ui.id_no = :id_no</sql>
<result element="Entries" rowName="Entry">
<element column="hasCC" name="hasCC" xsdType="string"/>
</result>
<param name="id_no" sqlType="STRING"/>
</query>
<query id="contrnoHasCCSQL" useConfig="tro">
<sql>select case when count(*) > 0 then 'OK' else 'NOK' end hasCC from ccinfo cc where contrno = :contrno</sql>
<result element="Entries" rowName="Entry">
<element column="hasCC" name="hasCC" xsdType="string"/>
</result>
<param name="contrno" sqlType="STRING"/>
</query>
<operation name="subnoHasCC">
<call-query href="subnoHasCCSQL">
<with-param name="subno" query-param="subno"/>
</call-query>
</operation>
<operation name="idNoHasCC">
<call-query href="idNoHasCCSQL">
<with-param name="id_no" query-param="id_no"/>
</call-query>
</operation>
<operation name="contrnoHasCC">
<call-query href="contrnoHasCCSQL">
<with-param name="contrno" query-param="contrno"/>
</call-query>
</operation>
</data>