SoapServerMessage.Server Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the instance of the class handling the method invocation on the Web server.
public:
property System::Object ^ Server { System::Object ^ get(); };
public object Server { get; }
member this.Server : obj
Public ReadOnly Property Server As Object
Property Value
The instance of the class implementing the XML Web service.
Exceptions
Examples
The following code fragment is part of a SOAP extension that logs the SOAP messages sent and received by an XML Web service. This particular fragment outputs to the log file the type of the XML Web service, if it is MathSvc
.
Remarks
The Server property is an instance of the class implementing the XML Web service. If a SOAP extension knew ahead of time the type of the class, it could cast Server to that type and access properties and methods of the class implementing the XML Web service. The Server property can be accessed during AfterDeserialize or BeforeSerialize.
Applies to
.NET