Skip to content

Wrong handler for web service (WrongWebServiceHandler)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Error BSL Critical Yes 10 suspicious
error

Description

If there is no web-service operation handler, then the call to the operation will return neither data, nor errors on the client side of the service, nor errors on the side of the service itself.

It is important to remember: the number of parameters of the web service operation method must match the number of parameters specified in the settings of the web service operation.

The configurator notices violations only when the "Check for the existence of assigned handlers" flag is enabled.

Examples

Invalid handler method with empty body

Function FillCatalogs(MobileDeviceID, MessageExchange)

EndFunction

Correct handler method - there is a method body and the correct set of parameters is specified

Function FillCatalogs(MobileDeviceID, MessageExchange)
    Return MobileOrders.FillCatalogs(MobileDeviceID, MessageExchange);
EndFunction

Invalid handler method with the wrong number of parameters

Function FillCatalogs(MobileDeviceID, MessageExchange, Additional)
Return MobileOrders.FillCatalogs(MobileDeviceID, MessageExchange);
EndFunction

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:WrongWebServiceHandler-off
// BSLLS:WrongWebServiceHandler-on

Parameter for config

"WrongWebServiceHandler": false