C# Класс Microsoft.Protocols.TestSuites.Common.SchemaValidation

A Class represent the XML schema validation function.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GenerateValidationResult ( ) : string

This method is used to generate xml validation result information by using the record errors and warnings.

GetSoapFaultDetailBody ( string soapBody ) : string

This method is used to get the soap fault detail.

ValidateXml ( ITestSite testSite, string xmlValue ) : ValidationResult

Validate a piece of Xml fragment.

ValidateXml ( string xmlValue ) : ValidationResult

Validate a piece of Xml fragment.

Приватные методы

Метод Описание
DoValidation ( string xmlString ) : void

Validate special xml.

GetSchemaStringFromWsdlFile ( string schemaLoadPath ) : string[]

A method used to get the schema definitions from full WSDL file. It is designed to read schema definition from full WSDL file.

GetSoapStandardSchema ( ) : string[]

A method used to get the standard soap schema definitions from xsd file.

GetTargetNamespace ( string fullSchema ) : string

This method is used to get the target namespace from a schema string.

InitSchemaList ( ) : void

This method is used to initialize the schema definitions list which is used to set the schema validation settings.

InitValidateRecoder ( ) : void

Initialize the validate recorder.

ValidateSpecialXml ( string xmlString ) : void

Validate special xml.

ValidateXml ( ITestSite testSite, bool ignoreSoapFaultSchemaValidationForSoap12 ) : ValidationResult

Validate a piece of Xml fragment.

ValidationCallBack ( object sender, ValidationEventArgs args ) : void

This method is a callback function which is used to record the schema validation errors and warnings.

Описание методов

GenerateValidationResult() публичный статический Метод

This method is used to generate xml validation result information by using the record errors and warnings.
public static GenerateValidationResult ( ) : string
Результат string

GetSoapFaultDetailBody() публичный статический Метод

This method is used to get the soap fault detail.
public static GetSoapFaultDetailBody ( string soapBody ) : string
soapBody string Xml fragment string.
Результат string

ValidateXml() публичный статический Метод

Validate a piece of Xml fragment.
public static ValidateXml ( ITestSite testSite, string xmlValue ) : ValidationResult
testSite ITestSite Implements Microsoft.Protocols.TestTools.IAdapter.Site.
xmlValue string Xml fragment string.
Результат ValidationResult

ValidateXml() публичный статический Метод

Validate a piece of Xml fragment.
public static ValidateXml ( string xmlValue ) : ValidationResult
xmlValue string Xml fragment string.
Результат ValidationResult