Re: [HAPI-devel] Error message handling

2009-05-21 Thread Asanka Abeysinghe
Thanks James, it works. It seems I need some information about the original request message to construct the ACK. - Asanka James Agnew wrote: I'm probably be missing something, but you should be able to do it the same way you'd construct any other message. I.e: ACK ack = new ACK(); //

Re: [HAPI-devel] Error message handling

2009-05-21 Thread James Agnew
I'm probably be missing something, but you should be able to do it the same way you'd construct any other message. I.e: ACK ack = new ACK(); // populate MSH ack.getMSA().getAcknowledgementCode().setValue("AR"); ack.getERR().getErrorCodeAndLocation(0).getCodeIdentifyingError().getIdentifier().

Re: [HAPI-devel] Error message handling

2009-05-21 Thread Asanka Abeysinghe
Hi Roger, Thank you for the response, nice blog post. Problem that I have is I want to construct the ACK with a ERR segment from scratch, that I don't have a original message at the point I know only an error happen after forwarding the original message. Any clue on constructing the message

Re: [HAPI-devel] Error message handling

2009-05-21 Thread Roger Searjeant
I have posted a short piece (+ code) on ACK/NAKs in HAPI, see: http://searjeant.blogspot.com/2009/02/camel-hl7-hapi-and-nak-messages.html http://searjeant.blogspot.com/2009/02/camel-hl7-hapi-and-nak-messages.html Hope this is some help to you. Roger. asanka wrote: > > Hi, > How do we handle

Re: [HAPI-devel] HL7 Ack

2009-05-21 Thread asanka
huzaifa.kamal wrote: > > Hey Can somebody help me in generating a HL7 ack using HAPI. > > I have a application A which receives a HL7 msg. and generate an ACk for > it can u plz help me in it... i m new to this HAPI domain. > You can use the following code snippet to create an ack.