C# 클래스 Microsoft.Protocols.TestSuites.Common.SchemaValidation

A Class represent the XML schema validation function.
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites 1 사용 예제들

공개 메소드들

메소드 설명
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