URL of Service Locator from AngularJS client

Four Stars

URL of Service Locator from AngularJS client

i have created Rest WebService in talend studio with tRestRequest and tRestResponse. In tResrRequest I have enabled the checkbox for ServiceLocator.

I am able to access the Rest webservice as http://locahost:8040/services/customer/getAdress

 

Created Alternative container with port 8041 and deployed the same service. I able to access the Rest Webservice as 

http://localhost:8041/services/customer/getAddress

 

Now i want to access this webservice from Angular/JSp pages and also should use the ServiceLocator so that if one of the service is down , i will be able to get response from other.

 

in this what should be my URL so that i get response from if any one is down/unavalable.

 

if i give http://localhost:8041/services/customer/getAddress then i able to get the response and when i stop the service <html><body>No service was found.</body></html> is the response i got

 

i tried to access with  http://localhost:2181/services/customer/getAddress but not getting any response.

 

what should be my loadbalacing URL??

 

Moderator

Re: URL of Service Locator from AngularJS client

Hello,


Now i want to access this webservice from Angular/JSp pages and also should use the ServiceLocator so that if one of the service is down , i will be able to get response from other.

 

in this what should be my URL so that i get response from if any one is down/unavalable.

 

if i give http://localhost:8041/services/customer/getAddress then i able to get the response and when i stop the service <html><body>No service was found.</body></html> is the response i got

 

i tried to access with  http://localhost:2181/services/customer/getAddress but not getting any response.

 

what should be my loadbalacing URL??

 


It looks like service locator doesn’t support for it. Could you please create a new feature/ work item jira issue of ESB project on talend bug tracker?

https://jira.talendforge.org/secure/Dashboard.jspa

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read