cancel
Showing results for 
Search instead for 
Did you mean: 

Why XSD Validation Is used and How

Former Member
0 Kudos

Hi All

Please explaim why we use XSD validation and how it is done.

Regar

Accepted Solutions (1)

Accepted Solutions (1)

sunilchandra007
Active Contributor
0 Kudos

XSD schema is used to validate an XML document. The validation is performed by checking whether the XML document is a well-formed.

Have a look at this article -

How To... Perform XML Validations in SAP NetWeaver Process Integration 7.1

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d06dff94-9913-2b10-6f82-9717d9f83df1&override...

For more understand , refer to http://www.w3schools.com/Schema/default.asp

Regards,

Sunil Chandra

Edited by: sunil chandra on Oct 24, 2009 1:39 PM

Former Member
0 Kudos

Hi,

I still did not unserstand that what is the purpose of using XSD vilidation for sender soap scenario.

Please elaborate a bit more

Regards,

Nidhi

former_member187339
Active Contributor
0 Kudos

Hi Nidhi,

>>I still did not unserstand that what is the purpose of using XSD vilidation for sender soap scenario.

May be you shoudl have written this in the first place that you need to know why XSD validation for SOAP sender scenarios

Now have you created a SOAP scenario in PI and have given the wsdl to some external client? If yes then you may not be required to use the XSD validation option, because you have given the source structure used in PI in the wsdl file itself.

Now think like you have not provided the wsdl file and the source side is manually creating the XML that need to be sent to PI. there are chances that the mandatory fields may be missed or some other mismatch in structure can happen. If you don't go for XSD validation in source side there are chances that you message mapping may fail. So to avoid this you can use the XSD Validation, where you are validating the XML structure (which is sent to PI) with XSD schema (which is used in PI) amd if any mismatch found then it can fail before mapping

Regards

Suraj

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

XSD schema defines elements, attributes, and the relationship between them. It conforms to the W3C XML schema standards and recommendations. We need to check whether XSD is well formed or not and its valid or not just like compiling program.

if it is weel formed then only we can see message structure in XSD,when you imprt XSD in to PI,it should genarate WSDL ,then only we can its valid or well formed in PI point of view.

before uploading as a External def in PI, we can validate using XML Editors like XML Spy or Stylus.

in XML spy use F7 button to check wellformess and F8 to validate.

Regards,

Raj