SoapException::Actor Property
Gets the piece of code that caused the exception.
Assembly: System.Web.Services (in System.Web.Services.dll)
The Actor property can only be set using one of the constructors that accepts an Actor argument.
When a SOAP request is made, the message is sent to a recipient, which is specified in a SOAP actor attribute. If an exception occurs within an XML Web service, the value of the SOAP actor attribute is assigned to the Actor property. For XML Web services created using ASP.NET, the URL to the XML Web service method is the value of the SOAP actor attribute and is returned in the Actor property.
For more information on the SOAP actor attribute, see the SOAP specification at http://www.w3.org/TR/SOAP/.
The following Web Form example calls the Math XML Web service method, which throws an exception if a division by zero occurs. When the exception is thrown, the Web Form catches the exception and outputs the exception details, including the Actor and Code properties, into an HtmlTable control.
In order for the preceding Web Form to use the following Math Web Service example, a namespace of MyMath was specified during the creation of the proxy class.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.