Skip to Content

schema validation problems

Dear all,

I am developing a EJB as the adapter module for the data validaion of the sender message on XI.

Because of the limit of accessing external website I can't implement the validation by parsing the payload

against the external XSD.

Therefore I am trying to implement the validation by parsing the payload against the internal DTD instead of the external XSD or the external DTD.

Please advise me how to convert the external XSD as the internal DTD into the payload before the

payload is parsed.

Thanks & Regards,

Red

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 26, 2008 at 10:59 AM

    Hi,

    You can do the external validation by placing the XSD in the server0 directory of your server.

    XML file should have a reference to XSD like for e.g.

    http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="YourXSD.xsd" version="1.1">

    <Header>

    ...

    </Header>

    ...

    Add comment
    10|10000 characters needed characters exceeded

    • Also you can find sample code on the site below.

      Please eliminate unused code and then use it.

      Also do the required System property setting which is already there in the code.

      (And do clear it after setting & using the system property)

      http://knowhowsapxi.synthasite.com/modules-in-sap-xi.php

      PS: The code is using SAX mapping to create the required source structure in message mapping of XI

      Edited by: Progirl Progirl on Nov 26, 2008 4:43 PM