GithubHelp home page GithubHelp logo

Comments (2)

hannukotipalo avatar hannukotipalo commented on August 28, 2024

Exception will be:

Exception in endpoint call!!
ca.uhn.hl7v2.HL7Exception: Couldn't find MSH.12 in message beginning: <ACK xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="u
at ca.uhn.hl7v2.parser.XMLParser.parseLeaf(XMLParser.java:775)
at ca.uhn.hl7v2.parser.XMLParser.getVersion(XMLParser.java:732)
at ca.uhn.hl7v2.parser.GenericParser.getVersion(GenericParser.java:191)
at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:205)
at ca.uhn.hl7v2.parser.GenericParser.parse(GenericParser.java:253)
at

from hapi-hl7v2.

hannukotipalo avatar hannukotipalo commented on August 28, 2024

Test will pass with this trick:
String ver_2_3_LibraryFixedString = testMsg.replace(
"<ACK xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd="http://www.w3.org/2001/XMLSchema\" xmlns="urn:hl7-org:v2xml">",
"<ACK xmlns="urn:hl7-org:v2xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd="http://www.w3.org/2001/XMLSchema\">"
);
parser.parse(ver_2_3_LibraryFixedString);

from hapi-hl7v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.