Re: [HAPI-devel] how to TCP Client that doesn't send messages

2017-04-20 Thread Lucila Armentano
Thanks but I need to connect to an analyzer that only accepts TCP Client connections. I tested it with Hercules app, and when I connected Hercules as a TCP client I started to receive ORU messages. I was reading the HAPI doc and I believe that I could create a Receiver over the client connection o

Re: [HAPI-devel] how to TCP Client that doesn't send messages

2017-04-20 Thread Christopher Speck
What you're describing is a Server not a Client. What you probably want is HL7Service, by using HapiContext.newServer() For example usage see http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/SendAndReceiveAMessage.html -- Christopher Speck > On Apr 20, 2017, at 3:56 PM, Lucila Armenta

[HAPI-devel] how to TCP Client that doesn't send messages

2017-04-20 Thread Lucila Armentano
Hello, I need to create a TCP Client for connecting to a server that automatically sends Messages (ORU). I couldn't do this by using de newClient() method of HapiContext, because it only receives messages after sending one. Is it possibly to create a client with a "Receiver" or some object that st