DataPower

 View Only
Expand all | Collapse all

In production environment we're seeing parsing errors from 1 MPGW. In the MPGW, we have URL-Open call to backend from where we expect XML data. But in 1 of the XML field there is Latin character coming- "ö"

  • 1.  In production environment we're seeing parsing errors from 1 MPGW. In the MPGW, we have URL-Open call to backend from where we expect XML data. But in 1 of the XML field there is Latin character coming- "ö"

    Posted 8 days ago
    Hi Team,

    Problem: In production environment we're seeing parsing errors from 1 MPGW.
    In the MPGW, we have URL-Open call to backend from where we expect XML data.
    But in 1 of the XML field there is Latin character coming- "ö"

    XML field which is causing parsing issue is-
    <DESCRIPTION>Mövenpick</DESCRIPTION>

    Error log:
    1:03:45 PM xmlparse error 520742565 request x.x.x.x 0x80e003aa mpgw (MPG-XXX-XXX-SERVICE): illegal character 'v' at offset 2904 of dpmq://XXXDATAQM/?RequestQueue=XXX.OUT_QUEUE;ReplyQueue=XXX.IN_QUEUE;SetReplyTo=true;TimeOut=90000

    Below is the URL-Open call in xslt-
    <dp:url-open target="{$mqURL}" response="xml" http-headers="$Requestmqmdheader" >
    <xsl:copy-of select="$InputMsg"/>
    </dp:url-open>

    Kindly advise on this issue as we need to put a fix in MPGW to accept
    latin characters in the XML response from backend.

    Let me know if you any further information from my end.

    ------------------------------
    Sudheer Puvvada
    ------------------------------


  • 2.  RE: In production environment we're seeing parsing errors from 1 MPGW. In the MPGW, we have URL-Open call to backend from where we expect XML data. But in 1 of the XML field there is Latin character coming- "ö"

    Posted 8 days ago
    What is in the "$Requestmqmdheader" value?

    That is, have you included an "Accept-Charset" header?


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



  • 3.  RE: In production environment we're seeing parsing errors from 1 MPGW. In the MPGW, we have URL-Open call to backend from where we expect XML data. But in 1 of the XML field there is Latin character coming- "ö"

    Posted 8 days ago
    Hi Joseph,

    Below are the MQMD headers passing in the MQ Request

    <MQMD>

    <Version>2</Version>
    <MsgId>xxxxx<MsgId>
    <CodedCharSetId>819</CodedCharSetId>
    <Format>MQSTR</Format>
    <MsgType>70002</MsgType>
    <Expiry>-1</Expiry>
    <ReplyToQ>xxxx</ReplyToQ>
    <ReplyToQmgr>xxxx</ReplyToQmgr>

    </MQMD>

    ------------------------------
    Sudheer Puvvada
    ------------------------------



  • 4.  RE: In production environment we're seeing parsing errors from 1 MPGW. In the MPGW, we have URL-Open call to backend from where we expect XML data. But in 1 of the XML field there is Latin character coming- "ö"

    Posted 8 days ago
    Hi since this is MQ i don't think the accept-encoding would change things.
    By default datapower assumes xml to be utf8; but that can change based on the xml dclaration in the document.
    Is the data uft8?
    can you attach the full xml & raw binary so we can determine if the ö is encoded correctly ?

    ------------------------------
    Matthias Siebler
    MA
    ------------------------------



  • 5.  RE: In production environment we're seeing parsing errors from 1 MPGW. In the MPGW, we have URL-Open call to backend from where we expect XML data. But in 1 of the XML field there is Latin character coming- "ö"

    Posted 8 days ago
    You might need to take a pcap for the url-open to see exactly what is returned (probe will not work as it may also parse the data)

    ------------------------------
    Matthias Siebler
    MA
    ------------------------------