Service Virtualization

 View Only

XML's are in non-readable format in IBM MQ's

  • 1.  XML's are in non-readable format in IBM MQ's

    Posted Feb 17, 2020 09:34 PM
    Edited by Narasimha Feb 17, 2020 11:33 PM
    Hi all @gajsr01, @John van der Leij
    DevTest 10.4:

    I have created a test case and it has 2 steps as follows.
    1) Consume request coming from an upstream system over IBM MQ and the message format is XML. I have used "IBM MQ Native Send/Receive" step.
    2) Save the message to DB.
    Upstream system puts messages in MQ and IBM MQ Native Send/Receive step consumes the messages.

    Observations:
    1) can consume and see proper XML from upstream system when there are no special characters in XML message
    2) When there are some special characters(EMOJI's) then XML message is shown as below when IBM MQ Native Send/Receive step is executed.

    What would be the issue when there are some special characters are coming in the XML request?

    3C 46 6E 64 74 4D 73 67 20 78 6D 6C 6E 73 3D 22 68 74 74 70 3A 2F 2F 66 75 6E 64 74 65 63 68 2E
    63 6F 6D 2F 53 43 4C 2F 43 6F 6D 6D 6F 6E 54 79 70 65 73 22 3E 0A 20 20 3C 48 65 61 64 65 72 3E
    0A 20 20 20 20 3C 50 5F 4D 49 44 3E 4B 30 32 49 43 33 39 33 39 41 4B 35 32 48 30 32 3C 2F 50 5F
    4D 49 44 3E 0A 20 20 3C 2F 48 65 61 64 65 72 3E 0A 20 20 3C 4D 73 67 3E 0A 20 20 20 20 3C 50 6D
    6E 74 3E 0A 20 20 20 20 20 20 3C 44 6F 63 75 6D 65 6E 74 20 78 6D 6C 6E 73 3D 22 75 72 6E 3A 69


    ------------------------------
    Thanks,
    Narasimha.
    ------------------------------
    ​​​​​​