Validating xml against wsdl

Hi I need to perform a validation for my XML file against XSD. To String()); //THe error messages will be print on screen. I am able to validate the XML against XSD with the above method but how can i find out the mandatory columns in the table with in the schema file. To String()); //THe error messages will be print on screen. To String()); for ex: if [email protected]@email is not valid in XML it would generate as The 'Email' element is invalid - invalid - The value '[email protected]@.comm' is invalid according to its datatype 'Validate Email' - The Pattern constraint failed.

I have gone through many examples but i am not clear about the steps in doing validation. Value); } } } private void Validation Event(object s, Validation Event Args args) { Response. I know there are few properties minoccurence,maxoccurence (or) Required. Value); } } } private void Validation Event(object s, Validation Event Args args) { Response. } Hi Kavita, So far so good the below statement would generate error messages with respect to framework Response.

There are several -- even many, if you like to stretch the term -- different kinds of schema in XML.

One doesn't validate XML against "files" of any kind (WSDL or anything else), except in the sense that a file may contain an instance of a schema.

Presumably you need a schema to validate WSDL, or validate your particular kind of WSDL.====================================================================== Wendell Piez mailto:[email protected] Mulberry Technologies, Inc.

The Professional Edition performs only simple schema validation, i.e., it treats the WSDL file as an XML file and validates it according to the appropriate schema defined at

If the column is mandatory and there is no value in the XML i need throw an error message. Hi Kavita, We need to show custom error whenever an errors with respect to provided XSD & XML.

But still it will be good if i get to see good example where i can validate the XML against XSD and loop throught the XML element. SO can you please explain in detail about below & this would be of great help. public void Validate XMLXSD() { string s File Name = Server. Validation Event Handler += new Validation Event Handler(this. "You can look for the differnt properties of the parameter passed in the Validation Event for the same" Regards, Prakash public void Validate XMLXSD() { string s File Name = Server. Validation Event Handler += new Validation Event Handler(this. Map Path("person.xml"); Xml Text Reader o Tr = new Xml Text Reader(s File Name); Xml Validating Reader o Vr = new Xml Validating Reader(o Tr); o Vr. Map Path("person.xml"); Xml Text Reader o Tr = new Xml Text Reader(s File Name); Xml Validating Reader o Vr = new Xml Validating Reader(o Tr); o Vr. The Enterprise Edition provides WSDL validation that goes beyond the validation provided by the Professional Edition.It does not validate against but rather uses the as well as its own logic to provide more valuable validation information in the context of WSDL.Thus it can happen that a WSDL file is valid in the Professional Edition, but not valid in the Enterprise Edition (see Example). is missing the extensibility elements (the specification and the schema should be the same but are not; this difference appears to be an error in the schema).

Comments are closed.