Register an endpoint for a specific service on the Service Locator server - 7.1

Talend ESB Infrastructure Services Configuration Guide

Version
7.1
Language
English (United States)
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Installation and Upgrade

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>