Giter Site home page Giter Site logo

QMHSNDM parameters about python-itoolkit HOT 2 CLOSED

ibm avatar ibm commented on May 30, 2024
QMHSNDM parameters

from python-itoolkit.

Comments (2)

kadler avatar kadler commented on May 30, 2024

Original comment by Tony Cairns (Bitbucket: rangercairns, GitHub: rangercairns).


little training for debug ...

Real problem was system API documentation just plain misleading. Aka, the data in msgKey is not character, but binary (change msgKey 4a to 4b).

#!python

.addParm(iData('msgKey','4a',''))

... change to ...

 .addParm(iData('msgKey','4b',''))

... how does a human know documentation is lying ???

The key indicator was that debug/trace XML simply stopped middle of the XML document. Aka, var="msgKey" simply did not continue. Of course, this means the binary data most likely had a zero in the data, which acted like a null terminated string for the XML string. The trace output simply did not finish printing the entire XML document ... ding, ding, ding, debug rule (below) ... system API needed binary type not character.

#!bash

6f3d22626f746822207661723d227039 o="both" var="p9
223e0a3c6461746120747970653d2234 ">.<data type="4
6122207661723d226d73674b6579223e a" var="msgKey">
3c215b43444154415b <![CDATA[

Therefore, as a general debug rule, when debugging system APIs and you see truncated XML, the most likely need is to change your data type from character to binary (change msgKey 4a to 4b).

Aka, the 'liar, liar, pants on fire' system API debug rule.

from python-itoolkit.

kadler avatar kadler commented on May 30, 2024

Original comment by Tony Cairns (Bitbucket: rangercairns, GitHub: rangercairns).


I made the correction in issue #8.

from python-itoolkit.

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.