How do I get the raw response string returned from the .NET SDK? I'm guessing it would come from the controller, but I can't find where the string is exposed.
It needs to be logged so we can get help with a failing transaction from support.
Thanks
Solved! Go to Solution.
03-20-2018 12:38 PM
For anyone else that comes along later, the .NET SDK uses System.Diagnostic.Tracing to write the response string. So you can add the following to your .config file and get the raw response string written to a log file.
<system.diagnostics> <trace autoflush="true" indentsize="4"> <listeners> <add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\MyLogFile.txt" /> <remove name="Default" /> </listeners> </trace> </system.diagnostics>
03-28-2018 08:46 AM
bump
03-26-2018 07:51 AM
For anyone else that comes along later, the .NET SDK uses System.Diagnostic.Tracing to write the response string. So you can add the following to your .config file and get the raw response string written to a log file.
<system.diagnostics> <trace autoflush="true" indentsize="4"> <listeners> <add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="C:\MyLogFile.txt" /> <remove name="Default" /> </listeners> </trace> </system.diagnostics>
03-28-2018 08:46 AM
So there is no way to programmatically get to the response string? Is there a reason why you would leave this feature out?
07-18-2018 12:12 PM