.net - Log WCF Service Calls with Parameter information -
I am using the Service Trace Viewer to analyze WCF service calls that are done in our application but I In fact it is necessary to see parameter values which have been passed to the service methods? Is this possible? I tried to convert logging to maximum output but still can not see anything: (
if you enable message tracing, you should get all the answers (including sent out his message of XML representation) both call details with this question:
& lt; system.diagnostics & gt; & lt; sources & gt; & lt; source name = "System.ServiceModel.MessageLogging" switchValue = "Information, ActivityTracing" & gt; & lt; listeners & gt; & lt; add name = "yourTrace" type = "System .Diagnostics.XmlWriterTr aceListener "initializeData =" C: \ Logs \ YourMessageLog.svclog "& gt; & lt; filter type =" "/ & gt; & lt; / link & gt; & lt; / listeners & gt; & lt; / Source & gt; & lt; / sources & gt; & lt; trace autoflush = "true" / & gt; & lt; /system.diagnostics> & lt; system.serviceModel & gt; & lt; fix & gt; & lt ; Messgelogging Logmessgestronsportlevel = "true" Logmessgesatsserviselevel = "false" Logmalformedmessges = "true" Logentiremessge = "true" Makssizofamessgetolog = "65535000" Mkmessgestolog = "500" / & gt; & Lt; / Diagnosis & gt; & Lt; /system.serviceModel>
should make it a directory called "C: \" log file "YourMessageLog.svclog" (which must already exist!) And who the WCF Service Trace Viewer Can see together.
What you will see here is going out of the message XML representation and coming back in response - your parameters should be wrapped in your XML structure here. Is that what you are looking for?
Comments
Post a Comment