2016-07-28 22 views
2

我所試圖做的就是財產的價值,並把它放在我的端點的URIWSO2屬性爲端點的地址

我的財產

<property value="1" name="id" scope="default" type="STRING"/> 

我的端點地址

<address format="rest" uri="http://localhost:port/service?id={id}"/> 

回答

2

這可以使用一個HTTP端點實現,

 <property name="uri.var.id" value="1" type="STRING"/> 
    <send> 
     <endpoint> 
      <http uri-template="http://localhost:port/service?id={uri.var.id}"/> 
     </endpoint> 
    </send> 
2

可能有不同的解決方案,但是一個技巧是使用uri的值設置「To」頭,然後調用send中介。像這樣:

<header name="To" expression="fn:concat('http://localhost:port/service?id=', get-property('id'))"/> 
<send/>