SoapDocumentMethodAttribute.RequestElementName Property

 

Gets or sets the XML element associated with the SOAP request for an XML Web service method, which is defined in a service description as an operation.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public string RequestElementName { get; set; }

Property Value

Type: System.String

The XML element associated with the SOAP request for an XML Web service method, which is defined in an service description as an operation. The default value is the name of the XML Web service method.

The RequestElementName defines the XML element used to wrap the parameters beneath the Body element of the SOAP request when ParameterStyle is Wrapped. This is reflected in the XSD schema representing the SOAP request to the XML Web service method within the service description for an XML Web service.

The following code example sets the name of the XML element associated with the XML Web service method in the SOAP request to MyCustomElement.

.NET Framework
Available since 1.1
Return to top
Show: