作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 WSO2ESB (4.8) 中有一个休息端点,我需要读取查询参数以将其设置为我的业务的动态有效负载,但是由于 wso2 ESB 更新,我无法读取它。有帮助吗?
最佳答案
下面的代码可以帮助你
<api xmlns="http://ws.apache.org/ns/synapse" name="sample" context="/api/sample">
<resource methods="OPTIONS GET" uri-template="/{val1}/groups/{val2}.json?q1={v1}&q2={v2}">
<inSequence>
<property name="uri.var.q1" expression="$url:q1"></property>
<property name="uri.var.q2" expression="$url:q2"></property>
<property name="uri.var.val1" expression="get-property('uri.var.val1')"></property>
<property name="uri.var.val2" expression="get-property('uri.var.val2')"></property>
<send>
<endpoint>
<http method="GET" uri-template=""></http>
</endpoint>
</send>
</inSequence>
<outSequence>
<send></send>
</outSequence>
</resource>
</api>
关于wso2 - 如何在 WSO2 ESB 4.8 或更高版本中读取查询参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27295902/
我是一名优秀的程序员,十分优秀!