This topic has not yet been rated - Rate this topic

XmlSchemaImporter.ImportAnyType Method

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

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

Namespace:  System.Xml.Serialization
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.XmlMembersMapping
An 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.

.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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ