Vote UpVote

Delphi SOAP service: only publish WSDL in RELEASE mode

The Wiert Corner РIf you want to restrict the WSDL publishing so it only is published in DEBUG mode, then add a [WayBack] TWSDLHTMLPublish to your [WayBack] TWebModule descendant, then add this in the [WayBack] OnCreate event handler of that TWebModule descendant: // Enable/disable handling of "/wsdl*" requests during DEBUG/RELEASE mode. Enabling sends them via // Handled := WSDLHTMLPublish1.DispatchRequest(Sender, Request, Response); {$ifdef DEBUG} WSDLHTMLPublish1.WebDispatch.Enabled := True; {$endif DEBUG} {$ifdef RELEASE} WSDLHTMLPublish1.WebDispatch.Enabled := False; {$endif DEBUG} end; I have ...
Favorite? Off-Topic? jpluimers @ 2018-08-21 19:04


Visits: 94
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)