Skip to Content
avatar image
Former Member

Doubt in XML payload validation in PI 7.1

Dear All,

I understand that the PI message payload can be validated against a XSD/XML structure..

but i do not understand its advantage as the payload will by default be validated against our source data type..

then why do we need it to get validated against some other xml at adapter/IE level

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Feb 24, 2009 at 11:19 AM

    Dear Ravi,

    A very good question asked by you... Actually to tell there is not much of an advantage...

    What it actually does is..

    1)XML Validation allows you to check the structure of a PI message payload. The structure check is

    performed using saved data types.

    2)Syntax validation of the incoming message payload is done at the Advanced Adapter Engine and at

    the Integration Engine against their XML Schema stored in the File System.

    3)Syntax validation of outgoing message payload is done at the Integration Engine against their XML

    Schema stored in the File System.

    And regarding your question why do we need it ..." This feature is demanded by the customers. "

    Source:https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/406a97c4-748c-2a10-f2be-cb63c5b0a11f

    Rgds

    joel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 24, 2009 at 11:19 AM

    Hi

    I am not sure if this is done

    but i do not understand its advantage as the payload will by default be validated against our source data type..

    atleast in earlier versions, we can create any source structure and send any kind of XML (as long as it is XML) , you can try it now 😊 ??!!!

    this check helps in avoiding such things & raising errors much earlier in the process

    Regards

    Vishnu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 24, 2009 at 11:23 AM

    By default XI validate source/target xml against XSD, but this validation includes checks like absence mandatory field etc....

    But other validations like restrictions, enumeration and so on are not performed

    This needs to be handled explicitly like writing Custom module in XI 3.0/PI 7.0

    with PI 7.1, there is an option in sender/receiver agreement to do so...and some more stuff needs to be done for this

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      IN PI 7.0 it does not check the schema, any xml received from SOAP adapter was forwarded to SAP systems by XI adapter in my case.

      Now with PI 7.1, we have the option to validate it.