Giter VIP home page Giter VIP logo

Comments (7)

abmusse avatar abmusse commented on May 25, 2024

Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).


Agreed. Thanks for posting!

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Danny Roessner (Bitbucket: droessner, GitHub: droessner).


@brianmjerome I posted the issue under https://bitbucket.org/inext/xmlservice-rpg/issues/14/output-contains-n-characters so I think the issue in this repo can be closed.

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Jesse G (Bitbucket: ThePrez, GitHub: ThePrez).


Yes, that's the correct spot. Thanks!

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Danny Roessner (Bitbucket: droessner, GitHub: droessner).


The newline characters are definitely coming from XMLService. I ran call QXMLSERV.iPLUG512K(?, ?, ?, ?) using Run SQL Scripts (I used https://bitbucket.org/litmis/nodejs-itoolkit/src/master/test/rpg/zzcall.rpgle to test with) and the output has the newline characters in it. Is https://bitbucket.org/inext/xmlservice-rpg/issues the right place to post the issue?

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Jesse G (Bitbucket: ThePrez, GitHub: ThePrez).


Interesting. I have not seen that before. This must be coming from XMLService, though. This could be verified by running your same query from a tool like Run SQL Scripts. Perhaps we should open an issue over at the XMLService repo once verified.

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Brian Jerome (Bitbucket: bjerome, GitHub: brianmjerome).


I am making a direct call using idb-connector with call QXMLSERV.iPLUG512K(?, ?, ?, ?) and the result includes the \n in the output string. The XML is still valid, it's just unnecessary bytes.

I guess I can answer my own question. I'm just having trouble understanding it all.

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 25, 2024

Original comment by Jesse G (Bitbucket: ThePrez, GitHub: ThePrez).


Brian, are you using the itoolkit with the iDb2Call transport? Or are you calling xmlservice directly, with this connector?

Also, just to verify, the \n you're seeing is the actual newline character, not an actual "\n", right? In other words, the XML is still perfectly valid, but has unnecessary bytes due to the newlines?

from nodejs-idb-connector.

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.