...
- On the Add Endpoint tab, click HTTP Endpoint (see Adding an Endpoint). The HTTP Endpoint page appears with its default view.
- Specify a unique name for this endpoint, and then enter the URI template, inserting "
uri.var.
" before each variable. To test the URI, click Test. - Specify the HTTP method to use during the invocation of this endpoint.
- Optionally, add advanced options and properties as described in Adding an Endpoint.
You can create HTTP endpoints by specifying values for the parameters specified above.
Alternatively, you can specify one parameter as the HTTP endpoint by using multiple other parameters, and then pass that to define the HTTP endpoint as follows:
Code Block | ||
---|---|---|
| ||
<property name="uri.var.httpendpointurl" expression="fn:concat($ctx:prefixuri, $ctx:host, $ctx:port, $ctx:urlparam1, $ctx:urlparam2)" />
<send>
<endpoint>
<http uri-template="
{uri.var.httpendpointurl}
"/>
</endpoint>
</send> |
Excerpt | ||
---|---|---|
| ||
Description of the HTTP Endpoint in WSO2 ESB. |