This documentation is archived and is not being maintained.

SoapReflectionImporter Class

Generates mappings to SOAP-encoded messages from .NET Framework types or Web service method information.

System.Object
  System.Xml.Serialization.SoapReflectionImporter

Namespace:  System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

type SoapReflectionImporter =  class end

The SoapReflectionImporter type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkSoapReflectionImporter()Initializes a new instance of the SoapReflectionImporter class.
Public methodSupported by the XNA FrameworkSoapReflectionImporter(SoapAttributeOverrides)Initializes a new instance of the SoapReflectionImporter class, specifying overrides for XML serialization.
Public methodSupported by the XNA FrameworkSoapReflectionImporter(String)Initializes a new instance of the SoapReflectionImporter class, specifying a default XML namespace for imported type mappings.
Public methodSupported by the XNA FrameworkSoapReflectionImporter(SoapAttributeOverrides, String)Initializes a new instance of the SoapReflectionImporter class, specifying XML serialization overrides and a default XML namespace.
Top

  NameDescription
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodImportMembersMapping(String, String, XmlReflectionMember[])Generates internal type mappings for information that is gathered from a Web service method.
Public methodImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean)Generates internal type mappings for information that is gathered from a Web service method.
Public methodImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean)Generates internal type mappings for information that is gathered from a Web service method.
Public methodImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean, XmlMappingAccess)Generates internal type mappings for information that is gathered from a Web service method.
Public methodSupported by the XNA FrameworkImportTypeMapping(Type)Generates a mapping to an XML Schema element for a .NET Framework type.
Public methodSupported by the XNA FrameworkImportTypeMapping(Type, String)Generates a mapping to an XML Schema element for a .NET Framework type.
Public methodSupported by the XNA FrameworkIncludeTypePlaces mappings for a type in the SoapReflectionImporter instance's context for later use when import methods are invoked.
Public methodSupported by the XNA FrameworkIncludeTypesPlaces mappings for derived types in the SoapReflectionImporter instance's context for later use when import methods are invoked.
Protected methodSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The SoapReflectionImporter class provides type mappings to SOAP-encoded message parts, as defined in a Web Services Description Language (WSDL) document. It is used only when a Web service or client specifies SOAP encoding, as described in Section 5 of the SOAP 1.1 specification.

The following example serializes a class named Group. The serialization of the GroupName and IgnoreThis fields and the members of the GroupType enumeration are overridden. In the CreateOverrideSerializer method, a SoapAttributeOverrides is created, and for each overridden member or enumeration, a SoapAttributes is created with the appropriate property set and added to the SoapAttributeOverrides. An XmlTypeMapping is created using the SoapAttributeOverrides, and that XmlTypeMapping is used to create the XmlSerializer that overrides the default serialization.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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