System.Web.Services.Discovery.SchemaReference Class

Represents a reference in a discovery document to an XML Schema Definition (XSD) language schema. This class cannot be inherited.

See Also: SchemaReference


[System.Xml.Serialization.XmlRoot("schemaRef", Namespace="", IsNullable=true)]
public sealed class SchemaReference : DiscoveryReference


XML Web services discovery involves discovering the available XML Web services given, a URL. A The URL typically points to a discovery document, which usually has a.disco file name extension. The discovery document contains references to information about the existance of XML Web services. These references can refer to service descriptions, XSD schemas, or other discovery documents. This class represents a reference to an XSD schema.

Within a discovery document, a reference to an XSD schema is contained within a schemaRef XML element. The schemaRef XML element has an XML namespace and a ref attribute. The value of the XML namespace must match the SchemaReference.Namespace constant. The value of the ref attribute is placed in the SchemaReference.Ref property.


Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0,

The members of System.Web.Services.Discovery.SchemaReference are listed below.

See Also: DiscoveryReference

Public Constructors

Initializes a new instance of the SchemaReference class using default values.

Initializes a new instance of the SchemaReference class using the supplied URL as the XSD schema reference.

Public Fields


XML namespace for XSD schema references in discovery documents.

Public Properties


Gets the name of the default file to use when saving the referenced XSD schema.


Gets or sets the URL to the referenced XSD schema.


Gets an XmlSchema object representing the XSD schema.


Gets or sets the targetNamespace XML attribute of the XSD schema.


Gets or sets the URL for the schema reference.

Public Methods

ReadDocument(Stream) : Object

Reads and returns the XSD schema from the passed Stream.

WriteDocument(Object, Stream)

Writes the passed XSD schema into the passed Stream.

Protected Methods

Resolve(String, Stream)

Resolves whether the referenced document is valid.