Soap.WSDLPub.TWSDLHTMLPublish.DispatchRequest

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DispatchRequest(Sender: TObject; Request: TWebRequest;
Response: TWebResponse): Boolean;

C++

bool __fastcall DispatchRequest(System::TObject* Sender, Web::Httpapp::TWebRequest* Request, Web::Httpapp::TWebResponse* Response);

Properties

Type Visibility Source Unit Parent
function public
Soap.WSDLPub.pas
Soap.WSDLPub.hpp
Soap.WSDLPub TWSDLHTMLPublish

Description

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

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.

See Also