Logging REST responses

You can log REST responses after requests are made.


  1. Open the wc-attribute-masking.xml file for editing:
    • workspace_dir/WC/xml/config/wc-attribute-masking.xml
    • HCL Commerce Developerworkspace_dir/wc/xml/config/wc-attribute-masking.xml
  2. Find the following line:
    <wc:MaskedAttribute compareType="starts" name="outbound"/> 
  3. Replace it with the following line, which comments out the line by adding <!-- and --> blocks around it:
    <!-- wc:MaskedAttribute compareType="starts" name="outbound"/--> 
  4. Restart the server.
  5. Enable the trace for REST features by specifying the following trace string in the WebSphere Application Server administration console:
    The log file is in the following directory:
    • LinuxAIXWindowsWAS_installdir/profiles/instance_name/logs/server1
    • For IBM i OS operating systemWAS_userdir/profiles/instance_name/logs/server1
    • HCL Commerce DeveloperWCDE_installdir/wasprofiles/logs/server1