Role Property

SoapException.Role Property


Gets a URI that represents the XML Web service's function in processing the SOAP message.

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

Public ReadOnly Property Role As String

Property Value

Type: System.String

The role of the XML Web service throwing the SoapException. The default is Empty.

The Role property is ignored when the SOAP protocol version 1.1 is used to communicate with an XML Web service. When SOAP 1.2 is used, the Role property sets the role element within a fault element of a SOAP message.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft