SoapMessage.MethodInfo Property

 

When overridden in a derived class, gets a representation of the method prototype for the XML Web service method for which the SOAP request is intended.

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

public abstract LogicalMethodInfo MethodInfo { get; }

Property Value

Type: System.Web.Services.Protocols.LogicalMethodInfo

A LogicalMethodInfo representing the XML Web service method for which the SOAP request is intended.

Although MethodInfo can be accessed during any SoapMessageStage, it only has data during AfterDeserialize and BeforeSerialize.

myStreamWriter.WriteLine("The method that has been invoked is: ");
myStreamWriter.WriteLine("\t" + message.MethodInfo);

.NET Framework
Available since 1.1
Return to top
Show: