To determine whether an HTTP request is a SOAP request, you can check the return value of the command 'Is SOAP request.' This command returns True if the code that is being executed is part of a SOAP request.
Here is an example of the command usage in the On Web Authentication database method:
If (Is SOAP request)
$0:=True ` accept the request
$0:=False ` deny the request