RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THTTPSoapDispatcher.DispatchRequest Method

Responds to an incoming message and generates the appropriate response message.

Pascal
function DispatchRequest(Sender: TObject; Request: TWebRequest; Response: TWebResponse): Boolean;
C++
__fastcall Boolean DispatchRequest(TObject * Sender, TWebRequest Request, TWebResponse Response);

The Web Module (or Web Dispatcher) calls DispatchRequest when it identifies an HTTP message that matches the properties of the WebDispatch property. DispatchRequest passes the request on to the component whose interface is the value of the Dispatcher property. That object interprets the request message, calls the appropriate invokable interface, and returns the content of the response message. 

Sender is not used in the DispatchRequest method. 

Request contains information about the incoming SOAP message. 

Response is a TWebResponse object that is filled out to indicate the response that should be returned to the Web client. 

DispatchRequest returns true if it successfully passes the request on to an invoker and that invoker handles the request and fills out the Response parameter. It returns false if it could not handle the request. 

 

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