on 09-03-2006 9:59 PM
Hi,
Did anyone implement a validation based on XSD on the mapping programm/ can anyone sahre an example?
thnaks
Hi Udi,
From SAP help and through some tests in XI,it is seen that, the only validation that takes place within XI is for mandatory nodes and occurrence of nodes of the target message. There is no validation of the source message (workaround is shown in the blog provided below), and there is no validation of details (like length, maxLength, minLength etc.) as specified in the XSD.
Do go through these links......
/people/jacob.vandborg/blog/2005/11/29/schema-validation-of-incoming-message
The following link gives mapping XSD to JAVA.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/7e5e3c754e476ee10000000a11405a/content.htm
You can also get some help by following this thread.
Regards,
Abhy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Udi,
Did you take a look at this blog,
<a href="/people/morten.wittrock/blog/2006/03/21/validating-messages-in-xi-using-xml-schema">Validating messages in XI using XML Schema</a>
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Define a temp source structure with all strings. During first mapping map this temp source structure to the actual source structure. In other words the temp source will have the same number of fields and name, so the mapping will be one-one straight. When you execute the mapping it will validate the incoming XML with the schema and will throw error if it is not as per schema.
Thanks,
Prakash
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.