RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWSDLHTMLPublish.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 responds by generating an HTML page that lists the WSDL documents describing the Web Service, and including a button for the WSDL administrator if the AdminEnabled property is true. 

Sender is not used in the DispatchRequest method. 

Request contains information about the incoming request 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 generates a response. It returns false if it could not handle the request. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!