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

Reply via email to