cancel
Showing results for 
Search instead for 
Did you mean: 

schema validation problems

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member190389
Active Contributor
0 Kudos

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.

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

<Header>

...

</Header>

...

former_member190389
Active Contributor
0 Kudos

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

Answers (0)