title: How can I assign a url from a property for a Send Mediator within WSO2 ESB?
body: <p>I'm looking to create a Send Mediator using a url that's configured within a separate database.</p>
  
  <p>I have the url in question assigned to a property <code>myurl</code> within my sequence.</p>
  
  <p>How can I create a <strong>send</strong> using this property as the send's url?</p>
  
  <p>Something like .. </p>
  
  <pre><code>&lt;property name="myurl" value="http://www.google.com"&gt;&lt;/property&gt;
  &lt;send&gt;
    &lt;endpoint&gt;
      &lt;http method="put" uri-template="{myurl}"&gt;&lt;/http&gt;
    &lt;/endpoint&gt;
  &lt;/send&gt;
  </code></pre>
  
  <p>errors .. (<code>uri-mapping</code> and using <code>get-property('myurl')</code> etc in the endpoint above has no luck either)</p>
  
  <p>Using the URL ReWriter Mediator didn't help me, as the action doesn't allow an expression, only <code>value</code></p>
  
  <pre><code>&lt;rewrite&gt;
    &lt;rewriterule&gt;
      &lt;action value="get-property('myurl')" type="set" fragment="full"&gt;&lt;/action&gt;
    &lt;/rewriterule&gt;
  &lt;/rewrite&gt;
  &lt;send&gt;&lt;/send&gt;
  </code></pre>
  
  <p>I'm not sure, even if the above worked .. how I'd be able to define it's a <code>POST</code> too .. </p>
  
  <p>Any help would be gratefully appreciated!</p>