Topic
  • 3 replies
  • Latest Post - ‏2012-11-30T03:32:16Z by SFBK_Sridhar_Pilla
SFBK_Sridhar_Pilla
SFBK_Sridhar_Pilla
8 Posts

Pinned topic B2Bgateway XML parsing issue

‏2012-11-28T21:32:58Z |
Hello All ,

I have a B2B gateway service that receives XML Payload from AS2 protocol and puts it on to MQ Queue. However, during the process we have encountered issues with the message; the received message is getting altered than original. In other words, 'XML Declaration' at the top of XML original message is getting stripped off during the process.

when we used the option in XML Manager to ignore the reference to the external dtd and parse the payload. At this time DataPower replaces the external reference with empty space but we need the reference declaration also to be parsed along with XML.

Please let me know if anyone has met with similar problem and resolution.

Thanks,
Sridhar
Updated on 2012-11-30T03:32:16Z at 2012-11-30T03:32:16Z by SFBK_Sridhar_Pilla
  • SFBK_Sridhar_Pilla
    SFBK_Sridhar_Pilla
    8 Posts

    Re: B2Bgateway XML parsing issue

    ‏2012-11-29T20:24:06Z  
    Hello guys ,

    I am really struck at the defined issue any suggestion/solution would help me great !!

    Thank for looking into the issue..

    Thanks,
    Sridhar
  • HermannSW
    HermannSW
    4732 Posts

    Re: B2Bgateway XML parsing issue

    ‏2012-11-29T22:29:24Z  
    Hello guys ,

    I am really struck at the defined issue any suggestion/solution would help me great !!

    Thank for looking into the issue..

    Thanks,
    Sridhar
    Why do you need an XML declaration?

    No xml-declaration is the same as '<?xml version="1.0" encoding="utf-8"?>'.
    So if your output is UTF-8 encoded any compliant XML processor would not need an xml-declaration.

     
    Hermann<myXsltBlog/> <myXsltTweets/>
  • SFBK_Sridhar_Pilla
    SFBK_Sridhar_Pilla
    8 Posts

    Re: B2Bgateway XML parsing issue

    ‏2012-11-30T03:32:16Z  
    • HermannSW
    • ‏2012-11-29T22:29:24Z
    Why do you need an XML declaration?

    No xml-declaration is the same as '<?xml version="1.0" encoding="utf-8"?>'.
    So if your output is UTF-8 encoded any compliant XML processor would not need an xml-declaration.

     
    Hermann<myXsltBlog/> <myXsltTweets/>
    Thanks for the reply ..

    Its not XML declaration ..I want to parse and avail external reference tag with out validation.
    example :
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE ichicsr PUBLIC "-//ICHM2//DTD ICH ICSR Vers. 2.1//EN" "http://safety-prd.bsci.bossci.com/edc-icsr-v2.1.dtd">
    <Test></Test>

    I am looking forward to parse external reference dtd without validation ...I mean parse reference tag along with payload .

    regards,
    Sridhar