Inspect WCF SOAP message payload -
i debugging wcf soap client. can modify client, don't have control on server. inspect actual messages sent , received in order find out why message works in soapui fails when sent client.
the communication on ssl, can't use wireshark inspect messages on wire.
i have enabled wcf tracing (with logentiremessage="true"
), while enormous amount of data logged, actual response payload not seem logged. shown "... stream ...
" in trace viewer. cant seem find http headers outgoing message in trace.
anybody have idea how closer inspecting actual messages?
edit: fiddler helped me find problem. (it utf-8 byte order mark in payload, server didn't like.) wfc tracing on other hand "high level" find kind of problem, far can tell.
one option use fiddler. option wcf logging (as said), make sure mark log @ both transport , message level. here's works me:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.diagnostics> <sources> <source name="system.servicemodel.messagelogging" switchvalue="warning, activitytracing"> <listeners> <add type="system.diagnostics.defaulttracelistener" name="default"> <filter type="" /> </add> <add name="servicemodelmessagelogginglistener"> <filter type="" /> </add> </listeners> </source> </sources> <sharedlisteners> <add initializedata="c:\messages.svclog" type="system.diagnostics.xmlwritertracelistener, system, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" name="servicemodelmessagelogginglistener" traceoutputoptions="timestamp"> <filter type="" /> </add> </sharedlisteners> </system.diagnostics> <system.servicemodel> <diagnostics> <messagelogging logentiremessage="true" logmalformedmessages="true" logmessagesatservicelevel="true" logmessagesattransportlevel="true" /> </diagnostics> </system.servicemodel> </configuration>
Comments
Post a Comment