XmlSchemaImporter.ImportAnyType Method
Generates internal type mapping information for a single, (SOAP) literal element part defined in a WSDL document.
Assembly: System.Xml (in System.Xml.dll)
public XmlMembersMapping ImportAnyType( XmlQualifiedName typeName, string elementName )
Parameters
- typeName
- Type: System.Xml.XmlQualifiedName
An XmlQualifiedName that specifies the name of an element's type for which a .NET Framework type is generated.
- elementName
- Type: System.String
The name of the part element in the WSDL document.
Return Value
Type: System.Xml.Serialization.XmlMembersMappingAn XmlMembersMapping representing the .NET Framework type mapping for a single element part of a WSDL message definition.
The ImportAnyType method is used by the Wsdl.exe tool while generating client proxy classes or abstract server classes from a Web Services Description Language (WSDL) document. Instead of calling this method directly, use Wsdl.exe or Xsd.exe.
The XmlSchemaImporter class is used only when a WSDL document specifies literal use. The ImportAnyType method is used when a WSDL message has a single part element but the part has not been identified as a wrapper element.
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.