ProtocolReflector Class
TOC
Collapse the table of content
Expand the table of content

ProtocolReflector Class

 
Use BaseTrue

Provides common functionality across communication protocols for creating ServiceDescription objects from classes that are identified as Web services.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

System.Object
  System.Web.Services.Description.ProtocolReflector

[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
public abstract class ProtocolReflector

NameDescription
System_CAPS_protmethodProtocolReflector()

Initializes a new instance of the ProtocolReflector class.

NameDescription
System_CAPS_pubpropertyBinding

Gets the Web Services Description Language (WSDL) binding currently being generated and added to the associated ServiceDescription.

System_CAPS_pubpropertyDefaultNamespace

Gets the default namespace, as identified by the associated ServiceDescription object's Namespace property.

System_CAPS_pubpropertyHeaderMessages

Gets SOAP header message definitions to be added to the associated ServiceDescription object.

System_CAPS_pubpropertyInputMessage

Gets the Web Services Description Language (WSDL) input message for the abstract operation that the protocol reflector is currently generating from a Web service method.

System_CAPS_pubpropertyMethod

Gets the Web service method that the protocol reflector is currently processing to generate a Web Services Description Language (WSDL) operation to be placed in the generated ServiceDescription.

System_CAPS_pubpropertyMethodAttribute

Gets the WebMethodAttribute for the method that the protocol reflector is currently processing to generate a Web Services Description Language (WSDL) operation to be placed in the generated ServiceDescription.

System_CAPS_pubpropertyMethods

Gets the Web service methods belonging to the Web service class, as identified by the associated ProtocolReflector object's Methods property.

System_CAPS_pubpropertyOperation

Gets the abstract Web Services Description Language (WSDL) operation that the protocol reflector is currently generating from a Web service method.

System_CAPS_pubpropertyOperationBinding

Gets the Web Services Description Language (WSDL) operation binding that the protocol importer is currently generating from a Web service method.

System_CAPS_pubpropertyOutputMessage

Gets the Web Services Description Language (WSDL) output message for the abstract operation that the protocol reflector is currently generating from a Web service method.

System_CAPS_pubpropertyPort

Gets the Web Services Description Language (WSDL) port that the protocol reflector is currently generating to contain a reference to the binding being generated.

System_CAPS_pubpropertyPortType

Gets the Web Services Description Language (WSDL) portType that the protocol reflector is currently generating to be implemented by the binding being generated.

System_CAPS_pubpropertyProtocolName

When overridden in a derived class, gets the name of the protocol being used.

System_CAPS_pubpropertyReflectionImporter

Gets the XmlReflectionImporter instance being used by the associated ServiceDescriptionReflector instance.

System_CAPS_pubpropertySchemaExporter

Gets the XmlSchemaExporter instance being used by the associated ServiceDescriptionReflector instance.

System_CAPS_pubpropertySchemas

Gets the XML schemas being generated by the associated ServiceDescriptionReflector instance.

System_CAPS_pubpropertyService

Gets the Web Services Description Language (WSDL) service that the protocol reflector is currently generating to contain a reference to the binding being generated.

System_CAPS_pubpropertyServiceDescription

Gets the ServiceDescription object currently being created to contain the binding being generated.

System_CAPS_pubpropertyServiceDescriptions

Gets the ServiceDescription objects that have so far been created and added to the corresponding to the ServiceDescriptionCollection obtained through the ServiceDescriptions property of the associated ServiceDescriptionReflector instance.

System_CAPS_pubpropertyServiceType

Gets the type of the Web service class being reflected to produce ServiceDescription objects.

System_CAPS_pubpropertyServiceUrl

Gets the endpoint of the associated Web service as a Uniform Resource Locator (URL), obtained from the associated ServiceDescriptionReflector object.

NameDescription
System_CAPS_protmethodBeginClass()

When overridden in a derived class, performs processing before ProtocolReflector calls the ReflectMethod method for each of the methods for a binding.

System_CAPS_protmethodEndClass()

When overridden in a derived class, performs processing after ProtocolReflector has called the ReflectMethod method for each of the methods for a binding.

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_pubmethodGetServiceDescription(String)

Gets a ServiceDescription object for a given XML namespace and the applicable communication protocol.

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_protmethodReflectDescription()

When overridden in a derived class, generates service-specific description information that gets placed in a ServiceDescription object that corresponds to a binding.

System_CAPS_protmethodReflectMethod()

When overridden in a derived class, generates method-specific information that gets placed in a ServiceDescription object corresponding to a binding.

System_CAPS_protmethodReflectMethodBinding()

When overridden in a derived class, returns the name of the binding that a method belongs to.

System_CAPS_pubmethodToString()

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

The abstract ProtocolReflector class and its concrete derived classes create ServiceDescription objects from classes that are identified as Web services with the WebServiceAttribute attribute. Each concrete ProtocolReflector-derived class generates ServiceDescription objects according to a specified communication protocol; ProtocolReflector provides common functionality regardless of the protocol.

An output ServiceDescription instance can be used to generate a Web Services Description Language (WSDL) document with the Write method or one of the available overloads. The ServiceDescription instance can also be used by the ServiceDescriptionImporter class and related classes to generate client proxy code or abstract server code.

The ProtocolReflector class uses the WebServiceBindingAttribute to create a ServiceDescription for each binding it identifies in the Web service class. If that attribute is not present, the ProtocolReflector class creates a single binding for the entire class. For each Web service method (a method in the Web service class appearing with the WebMethodAttribute) belonging to a binding, a class derived from ProtocolReflector generates an operation and associated messages that are added to the ServiceDescription object.

Typically, a developer uses these classes indirectly through the ServiceDescriptionReflector class, instead of directly invoking classes derived from ProtocolReflector.

.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:
© 2016 Microsoft