Any suggestions? Export (0) Print
Expand All

SoapDocumentMethodAttribute.ResponseElementName Property

 

Gets or sets the XML element associated with the SOAP response for an XML Web service method.

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

public string ResponseElementName { get; set; }

Property Value

Type: System.String

The XML element associated with the SOAP request for an XML Web service method. The default value is WebServiceNameResult, where WebServiceName is the name of the XML Web service method.

The ResponseElementName defines the XML element used to wrap the parameters beneath the Body element of the SOAP response when ParameterStyle is Wrapped. This is reflected in the XSD schema representing the SOAP response to the XML Web service method within the XML Web service's service description.

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft