Hello HAPI users,
The SendAndReceiveAMessage sample is extremely helpfull but it doesn't really
explain how we can actually extract the incoming message on port 1011. I can
send messages from en external source and I see the debuggin info listing the
message I've sent but when I actually try to capture that message and store it
into a variable or println into the Console I don't really know how to do that.
I'm using the generic handler <server.registerApplication("*", "*", handler);>
but I would like to extract the incoming message into a String so it doesn't
really matter what type of message I'm getting.
I'm thinking it must be something very simple. For instance in the
<connectionReceived> we should be able to write something like:
System.out.println("Message received: " + theC.getMessage().toString());
Please let me know if there are any questions or comments on my inquiry.
Regards,
Dan
------------------------------------------------------------------------------
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel