Yeah, any property that needs to be expanded (template.expand(.)) should be
defined with uri.var or query.param prefix. (Otherwise we have to pass all
properties to uri template expanding, which is a costly operation.)


On Wed, Mar 5, 2014 at 9:23 AM, Vijayaratha Vijayasingam <[email protected]>wrote:

> Hi ;
> I have defined following HTTP endpoints in my API;
>
>
> [1] <property name="zip" expression="$url:zip" scope="default"
> type="STRING"></property>
>
>    <send>
>
>       <endpoint>
>
>          <http method="get" uri-template="
> https://www.zipwise.com/webservices/zipinfo.php?key=62n0gsiy011b759i&amp;zip={zip}&amp;format=xml<https://www.zipwise.com/webservices/zipinfo.php?key=62n0gsiy011b759i&zip=%7Bzip%7D&format=xml>
> "></http>
>
>       </endpoint>
>
> The above[1] is not working, because, it is not appending the "zip"
> property value.
>
> [2]<property name="uri.var.zip" expression="$url:zip" scope="default"
> type="STRING"/>
>          <send>
>             <endpoint>
>                <http method="get" uri-template="
> https://www.zipwise.com/webservices/zipinfo.php?key=62n0gsiy011b759i&zip={uri.var.zip}&format=xml
> "/>
>             </endpoint>
>          </send>
>
> This is working, because i have defined the property with "uri.var" prefix.
>
> Now, what is the issue in my first configuration? I defined a property
> with my preferred value. Why ESB is not appending that property? only looks
> for "uri.var" properties?
>
> thanks
> --
> -Ratha
> mobile: (+94)755906608
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to