Search code examples
restloggingewam

Message logging for REST calls in eWam


Is there any way to enable/disable message logging for REST calls in eWamEx? We had this functionality for Soap calls in WIConfig.xml file.


Solution

  • if you're talking about this kind of message logging:

    PREPROCESSOR detected aWT_DefaultProcessor.AllowCORS
    PREPROCESSOR detected aWT_DefaultProcessor.FilterSystemVars
    PREPROCESSOR detected aWFX_GenericWynsureAuth.SignInUser
    

    It will enable/disable by setting /ERRORMESSAGE to true/false from WedRPCServer command line.

    If you want to know how to get the complete request/response like message logging of WIConfig.xml, there is actually no option for this in eWamEx. But you can get them from code by using aWT_HttpRequest.AsText or aWT_HttpResponse.AsText.