Neuron ESB User Network

The Service Bus for the Connected Business

I am very confused. I thought it was pretty easy to create a service endpoint in Neuron that could take in calls for a REST service and act as a pass-through (redirect) layer passing that call on to the real endpoint. Here is what I have done. 

1) Create a service endpoint. 

2) Enabled binding as REST

3) Binding tab is request-reply

4) Client connector is set as publisher AppWebAPI, publish to topic PM.Data, URL is http://esb-myapi.com (no IIS listening here)

5) Service connector is set to subscriber Id PM.API (PM.API is set to subscribe to PM.Data topic), URL is http://esb-myapi.com (IIS listening here)

Everything else is default. Issue is when my app issues the REST GET call to the http://esb-myapi.com endpoint Neuron gets it and AppWebAPI sends a request over and over and over again... goes on until I stop Neuron. I nver see PM.API ever receive the message. 

If I switch the URLs around I see a normal send, receive, reply pattern but the reply is a 404 because IIS is not listening on that endpoint. 

Is this suppose to work? What is wrong? 

UPDATE: 

From what I can tell the client connector does not care at all what the URL is. It processes every request that comes to the box. I can put www.bing.com as the URL and event though I am sending a request to esb-myapi.com it still picks it up. It also means that when it publish the message again to api.myapi.com which is on the same box it just picks the same message up and again and republishes, again and again. Looks like I can't put a filter on the publisher or subscriber either as the key request URL fields are not accessible (at least not without custom code and pipelines). Not sure how you ever get this working on a local machine.  

Views: 769

Reply to This

Replies to This Discussion

Hi Todd..

I saw your support ticket. I will provide a response there.

John Petersen

Hi Todd,

I think you have a misunderstanding of how client connectors and service connectors work. Client Connectors (i.e. the info you fill out on the Client Connector tab) represents services hosted by the Neuron ESB runtime.  When you provide it a URL, the URL MUST reference the local Neuron ESB server that will be hosting and running the Neuron ESB configuration. For example, if your server name is "Neuron01", the url would have to be http://neuron01/.....

generally you would provide a port as well if anything else (like IIS ) is listening/runnning on the neuron server.

In contrast, service connectors (the info you fill out on the Service Connector Tab) represents service endpoints that already exist and are hosted somewhere in your environment.....this could be on the same machine as Neuron...or a remote machine.  In some interesting use cases...it could represent the url of our own client connector....but no need to think about that now :)

So to create a pass thru REST you can either create one service endpoint and fill out both the Client Connector and Service Connector tabs...or you can create 2 Service Endpoints...one with a Client Connector tab enabled...the other with The service connector tab enabled.  in both cases though, the URLs would be different, where the client connector tab url will represent the Neuron server hosted service, while the service connector tab will represent the service url that you want the incoming message passed on to.

I would strongly recommend that you go through the Neuron Web Services tutorial that you can find here:

http://www.neuronesb.com/resources/training/

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Anupama Nair posted a discussion

Marketo Adapter Invalid Token

Hi,We are using the Marketo adapter to push account updates to Marketo. It works well for some time then starts failing with Invalid Token unless restarted. Is there a configuration that can be done so it can auto refresh the token when required?Thanks!See More
Nov 6, 2023
Sayantini Basak posted a discussion

Maximum payload size(REST API) for requests interfacing to NeuronESB

I am new to Neuron ESB and in our current scenario,We need to process batch transactions comprising of ~1000 records and send them to Neuron ESB for further processing. I would like to understand what is the maximum size of payload that can be transferred using REST interface to Neuron ESB.See More
Jul 22, 2022
Profile IconRobert E Dunie and Sayantini Basak joined Neuron ESB User Network
Apr 28, 2022
Profile IconDayanand, Frederic C, Steffen Greve-Oksfeldt and 1 more joined Neuron ESB User Network
Mar 16, 2022
Profile IconCam Vong and Mitja Luznar joined Neuron ESB User Network
Jan 27, 2022
Profile IconWill Hitzges, Chad Parsons, michael larsen and 4 more joined Neuron ESB User Network
Jun 11, 2021
Anupama Nair posted a discussion

ODBC stored proc polling with temporary tables

We have set up an ODBC adapter to poll a stored proc.We found that if the stored proc has a temporary table defined the rows returned are always 0.Any idea why this would be and what we can do to get around it?See More
Dec 14, 2020
Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019

Badge

Loading…

© 2024   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service