System.Xml.Serialization.XmlSchemaImporter.ImportAnyType Method

Generates internal type mapping information for a single, (SOAP) literal element part defined in a WSDL document.

Syntax

public XmlMembersMapping ImportAnyType (System.Xml.XmlQualifiedName typeName, string elementName)

Parameters

typeName
An System.Xml.XmlQualifiedName that specifies the name of an element's type for which a .NET Framework type is generated.
elementName
The name of the part element in the WSDL document.

Returns

An System.Xml.Serialization.XmlMembersMapping representing the .NET Framework type mapping for a single element part of a WSDL message definition.

Remarks

The XmlSchemaImporter.ImportAnyType(System.Xml.XmlQualifiedName, string) 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 System.Xml.Serialization.XmlSchemaImporter class is used only when a WSDL document specifies literal use. The XmlSchemaImporter.ImportAnyType(System.Xml.XmlQualifiedName, string) method is used when a WSDL message has a single part element but the part has not been identified as a wrapper element.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0