C# Class Thinktecture.Tools.Web.Services.CodeGeneration.MetadataFactory

Retrieves and imports meta data for WSDL documents and XSD files.
Mostra file Open project: WSCF/WSCF

Public Methods

Method Description
GetMetadataSet ( MetadataResolverOptions options ) : System.ServiceModel.Description.MetadataSet

Retrieves and imports meta data for a given WSDL document specified by WsdlDocument property.

GetXmlSchemas ( MetadataResolverOptions options ) : System.Xml.Serialization.XmlSchemas

Gets the XML schemas for generating data contracts.

Private Methods

Method Description
CertValidation ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors ) : bool
DownloadContract ( MetadataResolverOptions options ) : void
GetCredentials ( MetadataResolverOptions options ) : ICredentials

Returns an object of ICredentials type according to the options.

GetTempFilename ( Uri metadataUri ) : string
RemoveDuplicates ( XmlSchemaSet &set ) : void

Removes the duplicate schemas in a given XmlSchemaSet instance.

ResolveImports ( MetadataResolverOptions options, System.ServiceModel.Description.MetadataSet metadataSet ) : void
TrySetTempAttribute ( string file ) : bool
TryTranslateRpc2DocumentLiteral ( MetadataResolverOptions options ) : void
WriteStream ( Stream stream, string targetFile ) : void

Method Details

GetMetadataSet() public static method

Retrieves and imports meta data for a given WSDL document specified by WsdlDocument property.
public static GetMetadataSet ( MetadataResolverOptions options ) : System.ServiceModel.Description.MetadataSet
options MetadataResolverOptions The metadata resolving options.
return System.ServiceModel.Description.MetadataSet

GetXmlSchemas() public static method

Gets the XML schemas for generating data contracts.
public static GetXmlSchemas ( MetadataResolverOptions options ) : System.Xml.Serialization.XmlSchemas
options MetadataResolverOptions The metadata resolving options.
return System.Xml.Serialization.XmlSchemas