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