SoapReceiver.Receive Method (SoapEnvelope)
When overridden in a derived class, provides notification when a SOAP message is received.
Namespace: Microsoft.Web.Services2.Messaging
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Public Class soapReceiverImplementation
Inherits SoapReceiver
Protected Overrides Sub Receive(envelope As SoapEnvelope)
End Sub
End Class
Syntax
'Declaration
Overloads Protected MustOverride Sub Receive( _
ByVal envelope As SoapEnvelope _
)
protected abstract void Receive(
SoapEnvelope envelope
);
protected: abstract Void Receive(
SoapEnvelope^ envelope
);
protected abstract void Receive(
SoapEnvelope envelope
);
protected abstract function Receive(
envelope : SoapEnvelope
);
Parameters
- envelope
A SoapEnvelope that represents the SOAP message.
Example
Class MyReceiver
Inherits SoapReceiver
Protected Overloads Overrides Sub Receive(message As SoapEnvelope)
End Sub 'Receive
End Class 'MyReceiver 'Processing of message goes here
class MyReceiver : SoapReceiver
{
protected override void Receive( SoapEnvelope message )
{
//Processing of message goes here
}
}
Remarks
Notes to Inheritors: This method must be overridden.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
SoapReceiver Class
Microsoft.Web.Services2.Messaging Namespace