Posts

Showing posts from December, 2015

Using WSO2 ESB HTTP Endpoints to define Restful Endpoints

When we consider about the endpoints which has been allowed in WSO2 ESB there are several as follows

Address EndpointDynamic Load-balance EndpointFailover GroupHTTP EndpointWSDL EndpointLoad-balance GroupIndirect and Resolving EndpointsDefault EndpointTemplate EndpointRecipient List Endpoint
In this post I am going to take you through, how to use HTTP Endpoints to define Restful Endpoints. You can use Uri Templates to achieve this. There we can use the variables to retrieve the values of the uri at run time.

In order to demonstrate this I am going to define an api which I am going to access through an HTTP Endpoint and a proxy service.



<endpointxmlns="http://ws.apache.org/ns/synapse"name="TestHttpEP"><httpuri-template="http://localhost:8280/tutorial/{uri.var.param}/{uri.var.val}"method="get"><suspendOnFailure><progressionFactor>1.0</progressionFactor></suspendOnFailure><markForSuspension><retriesBeforeS…