RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SOAPPasInv.TBeforeDispatchEvent2 Type

TBeforeDispatchEvent2 is the type of the BeforeDispatchEvent2 event on an invoker component.

Pascal
TBeforeDispatchEvent2 = procedure (const MethodName: string; const Request: TStream; Response: TStream; var BindingType: TWebServiceBindingType; var Handled: Boolean) of object;
C++
(const MethodName: string; const Request: TStream; Response: TStream; var BindingType: TWebServiceBindingType; var Handled: Boolean) ( TBeforeDispatchEvent2)();

TBeforeDispatchEvent2 is the type of the BeforeDispatchEvent2 event handler, which is called before an invoker executes a request by calling the target invokable interface.  

MethodName is the name of the method that is about to be called.  

Request is a stream from which the event handler can read the SOAP request that is about to be executed.  

Response is a stream to which the event handler can write a response for the request.  

BindingType indicates the encoding that is used by the request.  

Handled returns true if the event handler supplies a response using the Response parameter. It returns false if the invoker should forward the request to a registered implementation class after the event handler exits. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!