SdlChannelSink Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides the implementation for a server channel sink that generates Web Services Description Language (WSDL) dynamically on the server.

Namespace:   System.Runtime.Remoting.MetadataServices
Assembly:  System.Runtime.Remoting (in System.Runtime.Remoting.dll)

System::Object
  System.Runtime.Remoting.MetadataServices::SdlChannelSink

public ref class SdlChannelSink : IServerChannelSink, IChannelSinkBase

NameDescription
System_CAPS_pubmethodSdlChannelSink(IChannelReceiver^, IServerChannelSink^)

Initializes a new instance of the SdlChannelSink class.

NameDescription
System_CAPS_pubpropertyNextChannelSink

Gets the next IServerChannelSink in the sink chain.

System_CAPS_pubpropertyProperties

Gets a IDictionary of properties for the current channel sink.

NameDescription
System_CAPS_pubmethodAsyncProcessResponse(IServerResponseChannelSinkStack^, Object^, IMessage^, ITransportHeaders^, Stream^)

Requests processing from the current sink of the response from a method call that was sent asynchronously.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetResponseStream(IServerResponseChannelSinkStack^, Object^, IMessage^, ITransportHeaders^)

Returns the Stream onto which the provided response message is to be serialized.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodProcessMessage(IServerChannelSinkStack^, IMessage^, ITransportHeaders^, Stream^, IMessage^%, ITransportHeaders^%, Stream^%)

Requests message processing from the current sink.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The SdlChannelSink is used to create WSDL in situations where the URL ends with the string "?wsdl".

The following table shows the channel configuration properties that can be specified for this channel sink. The first two properties combine to control the WSDL publication of objects published by the application domain. If false is specified for the first property, no WSDL is returned, regardless of the second property. (The default is true.) Otherwise, the second controls whether the global metadata object URI is permitted to respond. (The default is false.)

Property

Description

metadataEnabled

A Boolean value that specifies whether to honor requests that end in "?wsdl" if this sink is in the channel sink chain. The default setting is true. If false, the sink throws an exception in all cases where metadata is requested for any object in the application domain.

This property is supported only by the .NET Framework version 1.1 on the following platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family.

remoteApplicationMetadataEnabled

A Boolean value that specifies whether to honor requests for the object URI "RemoteApplicationMetadata?wsdl", which returns WSDL that describes all objects that are published by the application domain. If false, then any request to "RemoteApplicationMetadata.rem" throws an exception. All other "?wsdl" requests for particular object URIs are honored. If true, the global metadata request is honored. The default setting is false.

This property is supported only by the .NET Framework version 1.1 on the following platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: