Re: [HAPI-devel] no luck with cast

2013-04-17 Thread hscully
Hi James, Thanks, that’s it! Hugh From: James Agnew Sent: Tuesday, April 16, 2013 2:32 PM To: [email protected] Cc: HAPI Devel List Subject: Re: [HAPI-devel] no luck with cast Hi Hugh, The issue here is the line endings. You have \n instead of \r so it thinks that everything in the

Re: [HAPI-devel] no luck with cast

2013-04-16 Thread James Agnew
Hi Hugh, The issue here is the line endings. You have \n instead of \r so it thinks that everything in the message is a part of your MSH segment. Cheers, James On Tue, Apr 16, 2013 at 12:18 PM, wrote: > Thanks so much for getting back to me. Here’s the class being run from > a Junit test.

[HAPI-devel] no luck with cast

2013-04-16 Thread hscully
Thanks so much for getting back to me. Here’s the class being run from a Junit test. I’ve included the output below. The message is faithfully cast for structure but the values are not there. Perhaps the factory is creating an empty one. I know this is really rudimentary stuff so I appreciate yo

Re: [HAPI-devel] no luck with cast

2013-04-16 Thread James Agnew
Hi Hugh, Can you post a code sample illustrating the issue? Cheers, James On Tue, Apr 16, 2013 at 10:06 AM, wrote: > I am new to Hapi development. V2.5 and 2.6 messages parse without > throwing exceptions but when I cast my message to the model type the values > in the PID segment do not po

[HAPI-devel] no luck with cast

2013-04-16 Thread hscully
I am new to Hapi development. V2.5 and 2.6 messages parse without throwing exceptions but when I cast my message to the model type the values in the PID segment do not populate for A01 msgs. I do not have this problem in V2.2 using the example described. I have tried the Generic Parser and the C