Re: [HAPI-devel] How can I get the message in the server which sent from the client ?

2009-05-06 Thread Yu Gu
Hi,everyone.I know how to do that now. I use HL7Server class instead of SimpleServer and override the method: store() in Interface SafeStorage. So,I can save the HL7 Message in store() method by overriding it. Best regards. - Just Do It ! -- View this message in context: http://www.nabble.

Re: [HAPI-devel] XML to ER7 conversion using pipeParser.encode

2009-05-06 Thread Qaiser, Mohammed
Here are more details. I have a web service that carries HL7 - XML formatted messaged in payload, I need to extract that XML String Palyload, parse it with XML parser, convert into ER7 format and set back into payload of webservice response object. I tried printing of original Payload and I can

Re: [HAPI-devel] XML to ER7 conversion using pipeParser.encode

2009-05-06 Thread Qaiser, Mohammed
Hi Cameron, Thanks for your response, I tried changing code as follow but did not help with PipeParser.encode, However MyValidation trick helped me with PipeParser.parser but do not have any effect on PipeParser.encode. In below code, I called a method getMyValidation() in setValidationContext

Re: [HAPI-devel] XML to ER7 conversion using pipeParser.encode

2009-05-06 Thread Cameron Freiner
In your NoValidation Validation Context there are the following lines.. ca.uhn.hl7v2.validation.Rule trim = new TrimLeadingWhitespace(); getPrimitiveRuleBindings().add(new RuleBinding("*", "FT", trim)); getPrimitiveRuleBindings().add(new RuleBinding("*", "ST", trim));

[HAPI-devel] XML to ER7 conversion using pipeParser.encode

2009-05-06 Thread mq_cgi
Hi There, I am trying to convert HL7 - XML message to HL7 - ER7 format. However after conversion all whitespace are getting trimed off, which is part of the original XML message. In source code below, PipeParser.encode(ER7Msg) is the one who is triming all whitespaces. Is there a way I can still