DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Getting parse error after DataPower MQ Handler pulled the message from MQ

    Posted Wed July 24, 2024 07:25 AM
    Edited by Kumar . Wed July 24, 2024 07:30 AM

    Dear All,

    I have a MPGW service listening on IBM MQ v9+ MFT handler and configured to receive XML Request. But the request is failing with a parse error before coming into the rule. 

    And I gone through the below link yet couldn't able to  capture the request coming from MQ. :

     https://community.ibm.com/community/user/integration/discussion/any-way-to-access-raw-input-after-an-xml-parse-error

    Below is what the context variable holds:

    How can we capture the actual message that is fetched by DP MQ Handler?

    Appreciate any leads.
    ------------------------------
    Kumar
    ------------------------------


  • 2.  RE: Getting parse error after DataPower MQ Handler pulled the message from MQ

    Posted Wed July 24, 2024 11:15 AM

    It seems the message coming in isn't property formed XML.  You might consider converting the processing rule to non-XML and use a binary transform action (temporarily) so you can inspect the message.



    ------------------------------
    Joseph Morgan
    ------------------------------



  • 3.  RE: Getting parse error after DataPower MQ Handler pulled the message from MQ

    Posted Thu August 01, 2024 08:24 AM

    Hi Kumar, 

    adding to Joseph's input, it might be helpful to write the payload into a file if you have troubles to verify the content otherwise. This has been helpful at least for me in a couple of occasions. Use for example GatewayScript FS module https://www.ibm.com/docs/en/datapower-gateway/10.6?topic=apis-fs-module 



    ------------------------------
    Hermanni Pernaa
    ------------------------------



  • 4.  RE: Getting parse error after DataPower MQ Handler pulled the message from MQ

    Posted Tue August 06, 2024 04:06 AM

    Hello Hermanni,

    Apologies for delay.. Sure I would do that. I have tried  what Joseph has suggested, but the issue is on the MQ. The way the message is putting the MQ is not correct. Now, I could able to see the complete message but however still it's failing with parse error.  There are some non-english(french) characters coming up as a values of the xml element and the xml parser is throwing the error exactly at that element. How can we handle and process this as it is to the next action?

    <Request>
    <Rq>
    <ID>7654438</ID>
    <msg>essai</msg>
    </Rq>
    </Request>



    ------------------------------
    Kumar
    ------------------------------



  • 5.  RE: Getting parse error after DataPower MQ Handler pulled the message from MQ

    Posted Wed August 07, 2024 03:36 AM

    Hi Kumar,

    did you already check that your DataPower queue manager config CCSID value matches the one used on the remote queue manager?



    ------------------------------
    Hermanni Pernaa
    ------------------------------