Skip to Content
avatar image
Former Member

XSD validation

Hi,

Did anyone implement a validation based on XSD on the mapping programm/ can anyone sahre an example?

thnaks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 04, 2006 at 02:47 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Sep 04, 2006 at 03:09 AM

    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.

    Validating an XML message from Outbound Interface.

    Regards,

    Abhy

    Add comment
    10|10000 characters needed characters exceeded