Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 WSO2 DSS,我对如何将查询的单行/列结果公开为字符串而不是数组条目感兴趣。
例如,如果我有查询: Select 'test' as t From dual; 它只会返回一行一列,所以我不希望结果像下面这样包含在
<Entry> <t>test</t> </Entry>
相反,我只想
<t>test</t>
作为回应。dss可以做到这一点吗?在这种情况下需要使用什么类型的输出映射?
在 DSS 中,您可以添加 XSLT 以从响应中提取测试。结果(输出映射)部分中有一个名为 XSLT Path 的字段。您可以为该 xslt 提供配置注册表路径或治理注册表路径来执行此操作。