From: Jonny R. <jon...@vi...> - 2017-01-26 17:04:51
|
Hi Is it possible to disable or configure message content validation so that messages which fail validation continue to be sent to the receiving application? Here’s a bit of background: I have an HL7 service which receives messages over MLLP, does some processing, and forwards them to another destination. The HL7Service class code I’m using is below. I am receiving messages that are invalid against the specification from an endpoint over which I cannot change. These are currently being sent straight to the ExceptionHandler. I’m like these to continue to be sent to the receiving application so I can transform them to become valid messages. HapiContext context = new DefaultHapiContext(); HL7Service service = context.newServer(channel.getPortNumber(), channel.isUseTls()); service.registerApplication("*", "*", new Hl7ReceivingApplication()); service.registerConnectionListener(new Hl7ConnectionListener()); service.setExceptionHandler(new Hl7ExceptionHandler()); service.startAndWait(); Many thanks Jonny |