Hi Yu, The only two differences in those messages are in the timestamp and the sequentially generated control ID. Those would be different even if you used HL7Server twice in a row. No problems there.
Cheers, James On Wed, Jul 1, 2009 at 5:41 AM, Yu Gu <[email protected]> wrote: > > Hi all, > I use ca.uhn.hl7v2.protocol.impl.HL7Server,I find that the message is > different from the message received by client through calling > sendAndReceive > method. Is it right? or does i do right ? Thanks. > > I call sendAndReceive at client,and I get the response message: > > MSH|^~\&|||||20090701165737.937+0800||ACK|110|P|2.2 > MSA|AA|12345 > > I use HL7Server ,and I get the response message : > > MSH|^~\&|||||20090701165737.89+0800||ACK|108|P|2.2 > MSA|AA|12345 > > They really exist some differences. Why ? > > I use HL7Server like that: > > ..................... > HL7Server hl7server = new HL7Server(ss, ari, safestorage); > Processor p = null; > p= hl7server.accept(null); > myContext=p.getContext(); > hl7server.start(null); > > then, I override the method: void store(Transportable theMessage) > public void store(Transportable theMessage) throws HL7Exception { > ..................... > Transportable out = myContext.getRouter().processMessage(theMessage); > String responsemsg = out.getMessage() ; > System.out.println(responsemsg); > ...................... > } > > Is there anything wrong in my code ? > Thanks in advance ! :jumping: > Yu > > ----- > Just Do It ! > -- > View this message in context: > http://www.nabble.com/the-response-message-sent-by-HL7Server-is-different-from-the-message-received-by-client.-Is-it-right--tp24287004p24287004.html > Sent from the hl7api-devel mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Hl7api-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/hl7api-devel >
------------------------------------------------------------------------------
_______________________________________________ Hl7api-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hl7api-devel

