XmlReflectionImporter Class

This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Generates mappings to XML schema element declarations, including literal XML Schema Definition (XSD) message parts in a Web Services Description Language (WSDL) document, for .NET Framework types or Web service method information.

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

public class XmlReflectionImporter
public class XmlReflectionImporter
public class XmlReflectionImporter

The XmlReflectionImporter class is not used directly. Instead, it is used as follows:

  • By the ServiceDescriptionReflector class while it creates ServiceDescription objects from classes that are identified as Web services.

  • By a Web service or client, including during initialization.

  • To initialize an XmlSerializer object.

  • By the XML Schema Definition tool (Xsd.exe) while the tool generates XML schemas from types in a run-time assembly file.

  • By the Web Services Description Language tool (Wsdl.exe) while the tool generates client proxy classes or abstract server classes from a WSDL document.

The XmlReflectionImporter class is used for Web services when a service or client specifies:

  • Literal use, which indicates that the contents of SOAP message parameters and return values (or request and response documents) are literally specified with XML schema definitions.

  • Non-SOAP implementations of Web services using the HTTP-GET and HTTP-POST operations.


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

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0

Community Additions