on 2005 Aug 11 7:06 AM
Hi All,
I hav an xml generated from an outbound interface and is to be validated against a BC Schema that hav been specifically created from the sample XML docs.I'm strucked at how to validate the XML in XI against the xsd file. Can anyone pls help me out in this regard.It's a bit urgent.
Hi Anil,
The outbound inerface sends the XML message to XI. In XI, if you have configured 'Message Mapping', which has input message as your BC schema, then XI does the validation of this XML against this schema.
If the XML received do not match the XSD of the 'message mapping' input message type - then it results in a Mapping exception : Parsing error.
Does this answer?
regards,
Pops V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pops,
Wot i observed is that after defining the Data Type, the xsd is atomatically generated. And XI validates against that particular xsd.In my case,I don't want the xsd to generated atomatically.Either i shud provide the xsd on my own r i shud provide the file which contains the xsd so that XI validates the xml against my xsd. Can u just provide me info in this way.
thanx
Hi Anil,
When you create a dataType by yourself, then XI generates the XSD.
Instead, you could create the dataType by importing a XSD. Two ways:
1. While creating a new dataType, Goto Tools->'Import XSD' and select your XSD file.
2. You can import your XSD as 'External Definitions'
In these 2 cases, the dataType will be as per your XSD. Then use this dataType for receiving the data into XI.
XI validates against that dataType XSD, which is your XSD.
Hope this helps!
regards,
Pops V
User | Count |
---|---|
76 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.