XmlReflectionImporter.ImportMembersMapping Method

Definition

Returns internal type mappings using information from a Web service method.

Overloads

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean)

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

Generates internal type mappings for information from a Web service method.

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean)

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

Returns internal type mappings using information from a Web service method, and allows you to specify an XML element name, XML namespace, and other options.

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean)

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

Returns internal type mappings using information from a Web service method, and allows you to specify an XML element name, XML namespace, and other options.

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean, XmlMappingAccess)

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

Generates internal type mappings for information from a Web service method.

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Generates internal type mappings for information from a Web service method.

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

C#
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping(string? elementName, string? ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement);
C#
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping(string elementName, string ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement);

Parameters

elementName
String

An XML element name produced from the Web service method.

ns
String

An XML element namespace produced from the Web service method.

members
XmlReflectionMember[]

An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.

hasWrapperElement
Boolean

true if elements that correspond to Web Services Description Language (WSDL) message parts should be enclosed in an extra wrapper element in a SOAP message; otherwise, false.

Returns

An XmlMembersMapping with mappings to the element parts of a WSDL message definition.

Remarks

The ImportMembersMapping method is called while initializing a Web service or client, or reflecting a Web service. It is not necessary to call it directly.

The XmlReflectionMember array parameter can consist of any one of the following:

  • Web service method input parameters.

  • Web service method output parameters, plus the return type, if not void, at index 0.

  • SOAP input headers.

  • SOAP output headers.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Returns internal type mappings using information from a Web service method, and allows you to specify an XML element name, XML namespace, and other options.

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

C#
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping(string? elementName, string? ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc);
C#
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping(string elementName, string ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc);

Parameters

elementName
String

An XML element name produced from the Web service method.

ns
String

An XML element namespace produced from the Web service method.

members
XmlReflectionMember[]

An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.

hasWrapperElement
Boolean

true if elements that correspond to Web Services Description Language (WSDL) message parts should be enclosed in an extra wrapper element in a SOAP message; otherwise, false.

rpc
Boolean

true if the method is a remote procedure call; otherwise, false.

Returns

An XmlMembersMapping that contains the mappings.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Returns internal type mappings using information from a Web service method, and allows you to specify an XML element name, XML namespace, and other options.

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

C#
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping(string? elementName, string? ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc, bool openModel);
C#
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping(string elementName, string ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc, bool openModel);

Parameters

elementName
String

An XML element name produced from the Web service method.

ns
String

An XML element namespace produced from the Web service method.

members
XmlReflectionMember[]

An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.

hasWrapperElement
Boolean

true if elements that correspond to Web Services Description Language (WSDL) message parts should be enclosed in an extra wrapper element in a SOAP message; otherwise, false.

rpc
Boolean

true if the method is a remote procedure call; otherwise, false.

openModel
Boolean

true to specify that the generated schema type will be marked with the <xs:anyAttribute> element; otherwise, false.

Returns

An XmlMembersMapping that contains the mappings.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

ImportMembersMapping(String, String, XmlReflectionMember[], Boolean, Boolean, Boolean, XmlMappingAccess)

Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs
Source:
XmlReflectionImporter.cs

Generates internal type mappings for information from a Web service method.

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

C#
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping(string? elementName, string? ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc, bool openModel, System.Xml.Serialization.XmlMappingAccess access);
C#
public System.Xml.Serialization.XmlMembersMapping ImportMembersMapping(string elementName, string ns, System.Xml.Serialization.XmlReflectionMember[] members, bool hasWrapperElement, bool rpc, bool openModel, System.Xml.Serialization.XmlMappingAccess access);

Parameters

elementName
String

An XML element name produced from the Web service method.

ns
String

An XML element namespace produced from the Web service method.

members
XmlReflectionMember[]

An array of XmlReflectionMember objects that contain .NET Framework code entities that belong to a Web service method.

hasWrapperElement
Boolean

true if elements that correspond to Web Services Description Language (WSDL) message parts should be enclosed in an extra wrapper element in a SOAP message; otherwise, false.

rpc
Boolean

true if the method is a remote procedure call; otherwise, false.

openModel
Boolean

true to specify that the generated schema type will be marked with the <xs:anyAttribute> element; otherwise, false.

access
XmlMappingAccess

One of the XmlMappingAccess values. The default is None.

Returns

An XmlMembersMapping that contains the mappings.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1