Web Service Schema Validation  
Author Message
Paul Higgs





PostPosted: XML and the .NET Framework, Web Service Schema Validation Top

I'm looking for a way in which I can validate the XSDs/schemas calls via Web services. My application is very basic however it has a strong dependency on these XML requests and as a consequence I would like to detect as best I can.

 

As such there is anybody know of any good examples/demonstrations of best practices that will show how I can best implement this, ideally using 2005

 

Your help would highly appreciated

 

Thanks in advance

Paul



.NET Development15  
 
 
AaronBradley





PostPosted: XML and the .NET Framework, Web Service Schema Validation Top

Hi Paul,

Are you looking to validate SOAP messages sent to an existing service against the schemas within the service description for that service Or, are you working with XML and XSDs locally, and want to create a service to validate a particular XML document against a schema


Thanks!
Aaron


 
 
Paul Higgs





PostPosted: XML and the .NET Framework, Web Service Schema Validation Top

I guess both upon reflection - however recent investigation has lead me towards WCF and i'm curious - whether or not i can use this to help me solve both these scenarios


 
 
Sergey Dubinets - MSFT





PostPosted: XML and the .NET Framework, Web Service Schema Validation Top

XmlReader in System.Xml can validate XML against XSD schema. (http://msdn.microsoft.com/msdnmag/issues/06/09/ServiceStation/default.aspx#S8)

You can do this locally or you can write your WebService that do this for you.