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

Syntax

[System.Xml.Serialization.XmlRoot("schemaRef", Namespace="http://schemas.xmlsoap.org/disco/schema/", IsNullable=true)]
public sealed class SchemaReference : DiscoveryReference

Remarks

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.

Requirements

Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.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

const
NamespaceString.

XML namespace for XSD schema references in discovery documents.

Public Properties

[read-only]
override
DefaultFilenameString.

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

RefString.

Gets or sets the URL to the referenced XSD schema.

[read-only]
SchemaXmlSchema.

Gets an XmlSchema object representing the XSD schema.

TargetNamespaceString.

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

override
UrlString.

Gets or sets the URL for the schema reference.

Public Methods

override
ReadDocument(Stream) : Object

Reads and returns the XSD schema from the passed Stream.

override
WriteDocument(Object, Stream)

Writes the passed XSD schema into the passed Stream.

Protected Methods

override
Resolve(String, Stream)

Resolves whether the referenced document is valid.