You can create your endpoint, for example
<endpoint xmlns="http://ws.apache.org/ns/synapse" name="MyEndpoint"> <http uri-template="{uri.var.full}?f={uri.var.f}{+uri.var.extra}" method="put"> </http> </endpoint>
Then, before invoking the MyEndpoint endpoint, set the properties .. the properties to be analyzed for the endpoint must begin with uri.
I also found out that if you put the + symbol in front of the property name, it does not encode its URI, so it is convenient for creating parameters on the fly. Otherwise, for known parameters, you can do, as described above, for the parameter e
so something like
<property name="uri.var.full" value="http://jarhedz.com/viewtopic.php"/> <property name="url.var.f" value="2"/> <property name="uri.var.extra" value="&t=39"/> <send> <endpoint key="MyEndpoint"></endpoint> </send>
should bring you to the URL http://jarhedz.com/viewtopic.php?f=2&t=39
(By the way, as a note, if you use a web editor, he will complain about and ... his buggies, how the hell .. save it as
&
.. and this saves it as / or a property using javascript)
Brian source share