wso2esb - WSO2 ESB 4.8.1. Dynamic HTTP Endpoint Template does not work -


i using wso2 esb 4.8.1. making rest call back-end service. using http endpoint template make dynamic endpoint. picking value url , passing endpoint.

sequence code:

<sequence xmlns="http://ws.apache.org/ns/synapse" name="samplesequence">    <property xmlns:ns="http://org.apache.synapse/xsd" name="uri.var.myproperty" expression="get-property('uri.var.identitycode')" scope="default" type="string"></property>     <send>       <endpoint>          <http method="get" uri-template="http://com.example?identitycode={uri.var.myproperty}"></http>       </endpoint>    </send> </sequence> 

problem: value correctly being passed property. endpoint not picking up. right way it?

create query string using rest_url_postfix[1] follow

<property name="val1" expression="get-property('uri.var.identitycode')"/> <property name="rest_url_postfix" expression="fn:concat('?identitycode=',$ctx:val1)"  scope="axis2"/>  <send>   <endpoint>      <http method="get" uri-template="http://com.example"></http>   </endpoint> </send> 
  1. https://docs.wso2.com/display/esb470/http+transport+properties

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -