XmlSchemaImporter::ImportAnyType Method (XmlQualifiedName^, String^)

 

This API supports the product 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
Available since 1.1
Return to top
Show: