Skip to Content
avatar image
Former Member

XML validation in PI7.31

Hello All,

I am planning to use XML validation in PI7.31 (PO), but i am having a doubt related to error handling. Suppose PO picks the XML file from FTP server,and if the xsd validation fails at AEX then what will sender FTP will receive? I have read that sender will recieve a synchronous reponse but in which format?

Please help.

Regards

Vasant

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 15, 2012 at 05:24 PM

    Hope this information help you to understand how XML Validation works:

    During runtime, the target adapter translates an inbound message into the required XI message. The range of adapter functions allows the system to compare the payload to a configured schema. The adapter calls a central component for syntax validation, which calls an XML schema validation engine.
    Even when the Integration Engine checks the XML structure, the data types come from the Enterprise Services Repository. They must be exported by the ESR and copied into the file system. For the inbound and outbound processing of messages, XML validation is a new step in the pipeline. Whenever the structure of a message does not fit the stored schema, the Integration Engine creates an error description containing status information and a list of all structure errors. The error report is
    saved. The message is given an error status. The sender is not automatically notified when a message is validated in the Integration Server. The Integration Server makes the message persistent and can trigger an alert. An administrator can continue to process the message using the Runtime Workbench and can restart the process, if necessary.

    The message payload is not semantically checked in either of these procedures  In a sender agreement, you can choose between validation in the sender adapter or validation in the Integration Engine. When validation takes place in the adapter, a  synchronous response is sent to the sender in the event of an error.

    To configure the XML validation Proceed as follows:
    1. For XML validation, you must save the required schemas from the Enterprise Services Repository in the file system by creating the following directory structure.
    Create the following directory for validation on the Integration Server in the <sysdir> /xi/runtime_server directory. /validation/schema/<GUID
    for the software component version, to which the service interface is assigned>/<Repository namespace of the service interface>
    Create the following directory for validation on the central and decentralized Adapter Engine in the <SAP Installation directory>/<System ID>/<Instance number>//j2ee/cluster/server0 directory for non-cluster installation of AS Java: /validation/schema/<GUID of the software component version, to which the service interface is assigned>/<Repository namespace of the service interface>.

    Best Regards

    Rodrigo P-.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 15, 2012 at 03:20 PM

    Hi Vasant,

    You really want to use this feature, i had some performance issues while implementing the same in PI 7.1 , but tsome improvements made in PI 7.3 but not sure about performance.

    If you are using validtaion at Adapter Engine level then you will see error at adapter level because the validation works at sender agreement level and the error descript visible at adapter monitoring.

    Regards,

    Raj

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Baskar Gopalakrishnan

      Hi Baskar,

      I think we can also handle this using multimapping (doing the validation logic at mapping and separating valid and invalid records)??

      Regards!!