Not sure how to do this at all. The Neuron Samples net.Tcp RequestReply doesn't seem to cover this.
I have and EndPoint in NeuronESB: NetTCP Client Connector with simple address: net.tcp://localhost:8000/MyCategory/GetDataList
I have a simple Business process connected to the Publisher that does a RequestReply scenario with the Cancel.
I want to call the net.tcp:// address, pass a message and receive the result.
I've researched TcpClient and keep getting an error back stating that it attempts 10 times and fails.
How do I do this? I only want NeuronESB to expose this endpoint so I can have other apps call it and get data. Very, very basic. Keep it simple.
It needs to be net.Tcp so I can use full Integrated AD security.
I've read al the NeuronESB help that i can find and searched the articles and forum.
Please advise.
Tags:
Replies are closed for this discussion.
Jeff,
Can you send me a copy of your solution so that I can look over your client connector? I just ran the sample provided with the Neuron ESB explorer and it all seems to work for me. I would like to see what you have configured so I can assist.
Steve Kardian|Solution Architect / Product Technical Specialist
Neudesic – The Trusted Technology Partner in Business Innovation
Direct: 602-419-2384 | Cell: 720-317-7129
mailto: steve.kardian@neudesic.com | www.neudesic.com
Can you send/show me the sample TcpClient code you just now wrote to connect to the EndPoint?
net.tcp://localhost:8000/MyCategory/GetDataList
I think that is where my problem lies.
The sample provided is complicated and doesn't show just the TcpClient functionality that I am trying to use to connect to the NeuronESB EndPoint. It shows Client/Service app written in .NET and I need to have a remote .NET client (only) connecting to the Tcp endpoint (Client Connect Endpoint)
I didn't write code. I tested the process using the sample code. If you just need the client side of the equation then you can copy what was done in the sample for that interaction but not the service side. Without seeing your solution I can't really put together a solution for you.
Thanks for the responses Steve. I'll try to get you a copy of the solution later today.
Perhaps I need to also state that I cannot do this from a .NET solution. It is c# code, but not a custom .NET application -- I can reference libraries and write C# code to call using the TcpClient() in .NET.
The sample solution does not seem to use TcpClient(). I tried separating the client from the server, but they are too tightly integrated and the code is complex - I can't figure it out. It appears to use an App.config hard-coded entry. I can't use this.
In a nutshell, here is what I'm trying to accomplish (at the above mentioned address - I need the above mentioned address to work with the additional ".../MyCategory/GetDataLIst" pieces. I don't know how to reference the Tcp address with those.
I just need a stripped down sample of a basic call to net.tcp and get results.
This sample code was pulled from https://www.codeproject.com/Articles/1415/Introduction-to-TCP-clien...
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Net.Sockets;
public class clnt
{
public static void Main()
{
try
{
TcpClient tcpclnt = new TcpClient();
Console.WriteLine("Connecting.....");
tcpclnt.Connect("localhost",8000);
//how do I change the TcpClient call to connect
//to the NeuronESB address:
//net.tcp://localhost:8000/MyCategory/GetDataList
// use the ipaddress as in the server program
Console.WriteLine("Connected");
Console.Write("Enter the string to be transmitted : ");
String str=Console.ReadLine();
Stream stm = tcpclnt.GetStream();
ASCIIEncoding asen= new ASCIIEncoding();
byte[] ba=asen.GetBytes(str);
Console.WriteLine("Transmitting.....");
stm.Write(ba,0,ba.Length);
byte[] bb=new byte[100];
int k=stm.Read(bb,0,100);
for (int i=0;i<k;i++)
{
Console.Write(Convert.ToChar(bb[i]));
}
tcpclnt.Close();
}
catch (Exception e)
{
Console.WriteLine("Error..... " + e.StackTrace);
}
}
}
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by