It looks to me like your server isn't actually sending back that particular
response. If you look at the log line in [2], a response message is
received, but if you look at the value of MSA-2 it doesn't match the value
of "12345" in the message [1], which is what the client is actually
expecting to see back.. I'd check the logic in your server to see if
there's something odd going on there.
James
On Wed, Apr 24, 2013 at 8:03 AM, vijayaratha vijayasingam <
[email protected]> wrote:
> Hi all;
> I send a hl7 message with a messgeid=12345 and receives XML response[1]
> with same messageID.( check the MSA field ; ie:12345)
> In the request message's MSH_10 header and the response's MSA.2 filed
> values are matching..
> But why do i get the timeout exception[2]?
> I store the response [1] in a queue, and polling back and sending to
> client..
> Why client looks for MSH filed?
> shouldn't it check the MSA filed for matching messageId?
>
> Can anyone explain me the rootcause..
>
>
> [1]<?xml version="1.0"?>
> <ACK xmlns="urn:hl7-org:v2xml">
> <MSH>
> <MSH.1>|</MSH.1>
> <MSH.2>^~\&</MSH.2>
> <MSH.7>20130424151508.74+0530</MSH.7>
> <MSH.9>
> <CM_MSG.1>ACK</CM_MSG.1>
> </MSH.9>
> <MSH.10>208</MSH.10>
> <MSH.11>P</MSH.11>
> <MSH.12>2.1</MSH.12>
> </MSH>
> <MSA>
> <MSA.1>AA</MSA.1>
> <MSA.2>12345</MSA.2>
> </MSA>
> </ACK>
>
> [2] INFO app.Receiver: Unexpected Message Received:
> MSH|^~\&|||||20130424171523.303+0530||ACK|335|P|2.1
> [java] MSA|AA|208Exception in thread "main" ca.uhn.hl7v2.HL7Exception:
> Timeout waiting for response to message with control ID '12345
> [java] at
> ca.uhn.hl7v2.app.Initiator.sendAndReceive(Initiator.java:154)
> [java] at
> org.wso2.carbon.business.messaging.hl7.samples.HL7Sender.send(HL7Sender.java:48)
> [java] at
> org.wso2.carbon.business.messaging.hl7.samples.HL7Sender.main(HL7Sender.java:68)
> [java] at
> org.wso2.carbon.business.messaging.hl7.samples.ClientMain.main(ClientMain.java:30)
>
> Thanks
> -Ratha
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel