DTD line in incoming payload issue with interface determination condition

Hi,

I have SAP PI 7.3 single stack.

Scenario is HTTP to HTTP.

In the incoming request -

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.024/cXML.dtd">
<cXML >

<A>avalue</A>

<B>bvalue</B>

</cXML>

the interface determination condition i have put based on value of node A and node B. But due to line mentioned in RED above,it fails in interface determination condition.

we can't change the incoming request format. Is there any way that the RED line gets removed from input XML and interface determination condition is also retained.

thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jul 26, 2013 at 08:43 PM

    Hello,'

    >>Is there any way that the RED line gets removed from input XML and interface determination condition is also retained.

    Not possible.  First of all using java/xslt u have to remove the doctype declaration from ur input message otherwise your mapping will throw an error (this is what i have generally noticed while working with these kind of scenarios) and secondly handle all conditions at mapping level.

    http://scn.sap.com/thread/3184205

    Thanks

    Amit Srivastava

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 26, 2013 at 06:49 PM

    Hi,

    I don't think it is possible to strip off a text before interface determination step since it is HTTP adapter.

    Alternate option would be to do multi-mapping and handle the condition in graphical mapping.

    Hope it helps!

    Ambrish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 29, 2013 at 08:07 AM

    hi,

      You can use java function to remove those line see this note:SAP Note: 812966

    srikanth

    Add comment
    10|10000 characters needed characters exceeded

Skip to Content