wwRestProcess::OnBeforeCallMethod

Hook method that allows you to into every REST service call before the call is made.

Use this method to set global JsonService or JsonSerializer settings that are applied on every request.

o.OnBeforeCallMethod()

Example

************************************************************************
*  OnBeforeCallMethod - implemented as wwProcess Method
*******************************************************
FUNCTION OnBeforeCallMethod()

*** Don't stop on errors even in Web Connection Debug Mode
JsonService.IsDebugMode = .F.

ENDFUNC
*   OnBeforeCallMethod

See also:

Class wwRestProcess

© West Wind Technologies, 1996-2018 • Updated: 03/11/16
Comment or report problem with topic