【发布时间】:2017-01-31 08:51:13
【问题描述】:
我正在使用 WSO2 ESB 和 DSS,我已经设置了 DSS 服务并对其进行了测试,它使用以下 URL 工作
http://10.248.40.85:9764/services/params/op/{Value goes here}
我的问题是当从 ESB 调用它时它不起作用并抛出不兼容的参数错误。调用方式如下
<log level="custom">
<property name="uri.var.ID" expression="$body/int:User/int:UserID/text()"/>
</log>
<send>
<endpoint>
<http method="get" uri-template="http://10.248.40.85:9764/services/params/op/{uri.var.ID}"/>
</endpoint>
</send>
在记录 uri.var.ID 时,它会返回预期的数字,但当服务尝试调用端点时,它会抛出错误并说当前参数为空。
DSS 服务资源是
<resource method="GET" path="op/{ID}">
<call-query href="query2">
<with-param name="ID" query-param="ID"/>
</call-query>
</resource>
【问题讨论】: