开发者

See incoming requests to local ASP.NET development server

开发者 https://www.devze.com 2023-02-04 13:39 出处:网络
Is there a way to view incoming requests to a local ASP.NET development server? I\'m makin开发者_运维知识库g wcf service calls from a android app to a local development server. Something goes wrong s

Is there a way to view incoming requests to a local ASP.NET development server?

I'm makin开发者_运维知识库g wcf service calls from a android app to a local development server. Something goes wrong somewhere along the way, and I need to view what data the server recieves.

Edit: The android app is local too... in an emulator.


First activate logging in your WCF application by following the steps by adding the following config in your web.config file:

<system.diagnostics>
<trace autoflush="true" />
<sources>
  <source name="System.ServiceModel"
          switchValue="Information, ActivityTracing"
          propagateActivity="true">
    <listeners>
      <add name="wcfTraceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\WcfTrace.svclog" />
    </listeners>
  </source>
</sources>
</system.diagnostics>

Then just double-click on the WcfTrace.svclog file generated at the root of your C:\ drive, in order to open it in the SvcTraceViewer utility.

if like you say you receive some of the parameters, but not all, maybe the interface you are calling from your Android app is an older one than the one deployed on your server?


If you have troubles using Fiddler you can also use build-in WCF message logging and SvcTraceViewer.exe to check the log.

0

精彩评论

暂无评论...
验证码 换一张
取 消