SoapServerMessage.Server Property

Gets the instance of the class handling the method invocation on the Web server.

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

public:
property Object^ Server {
	Object^ get ();
}
/** @property */
public Object get_Server ()

public function get Server () : Object

Not applicable.

Property Value

The instance of the class implementing the XML Web service.

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.

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.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: