cancel
Showing results for 
Search instead for 
Did you mean: 

Validating an XML message from Outbound Interface.

Former Member
0 Kudos
118

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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