我们可以将参数传递给WSO2 ESB中的主序列URL吗?

时间:2014-05-19 13:33:22

标签: wso2 wso2esb

我从localhost:8280调用主序列。

我想将参数传递给主序列,如`

  

localhost:8280?book =" math"

请建议在主序列URL中传递参数是否可行,或者我们需要使用Rest API吗?

1 个答案:

答案 0 :(得分:0)

你可以提取这样的参数:

<property name="PARAM1"
expression="tokenize(substring-after(syn:get-property('To'),'param1='),'&')"
scope="default"
type="STRING"/>

<property name="PARAM1"
expression="tokenize(substring-after(syn:get-property('To'),'param2='),'&')"
scope="default"
type="STRING"/>
相关问题