Condividi tramite


SoapServiceMethodInvoker.Invoke Method

Invokes the method by using the specified envelope.

Namespace: Microsoft.Web.Services3.Messaging
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim message As SoapEnvelope
Dim returnValue As SoapEnvelope
Dim soapServiceMethodInvoker1 As SoapServiceMethodInvoker
returnValue = soapServiceMethodInvoker1.Invoke(message)

Syntax

'Declaration
Public Overrides Function Invoke( _
    ByVal message As SoapEnvelope _
) As SoapEnvelope
public override SoapEnvelope Invoke(
    SoapEnvelope message
);
public:
virtual SoapEnvelope^ Invoke(
    SoapEnvelope^ message
) override;
public override SoapEnvelope Invoke(
    SoapEnvelope message
);
public override function Invoke(
     message : SoapEnvelope
) : SoapEnvelope;

Parameters

  • message

Return Value

A SoapEnvelope representing the response. If the method is one way, null is returned.

Exceptions

Exception type Condition
ApplicationException

The method has more than one parameter.

Or

The request and response are the same instance of SoapEnvelope.

Or

The request and response use different versions of SOAP.

System.InvalidOperationExcepton

The response uses MTOM but the SoapEnvelope was constructed using the wrong version of SOAP.

Remarks

Only methods with zero or one parameter will be invoked. This method will attempt to deserialize the request to match the parameter type of the underlying method.

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 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

SoapServiceMethodInvoker Class
SoapServiceMethodInvoker Members
Microsoft.Web.Services3.Messaging Namespace