Register an endpoint for a specific service on the Service Locator server
Register an endpoint for a specific service.
Parameters: fully qualified service name, endpoint URL, user defined properties (optional).
Return: void.
The Register an endpoint for a specific service operation is described in LocatorService.wadl as follows:
<resource path="endpoint">
<method name="POST" id="registerEndpoint">
<request>
<representation mediaType="application/xml"
element="ns:RegisterEndpointRequest"/>
<representation mediaType="application/json"
element="ns:RegisterEndpointRequest" />
</request>
</method>
</resource>
Example of request url with POST method: locator/endpoint/
<?xml version="1.0" encoding="UTF-8"?>
<lpx:RegisterEndpointRequest
xmlns:lpx="http://talend.org/schemas/esb/locator/rest/2011/11"
xmlns:tns="http://www.w3.org/2005/08/addressing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://talend.org/schemas/esb/locator/rest/2011/11 types.xsd">
<serviceName>
{http://service.proxy.locator.esb.talend.org}LocatorServiceImpl
</serviceName>
<endpointURL>
http://services.talend.org/TestEndpoint
</endpointURL>
<binding>JAXRS</binding>
<transport>HTTP</transport>
<EntryType>
<key>systemTimeout</key>
<value>200</value>
</EntryType>
</lpx:RegisterEndpointRequest>