本文介绍了提琴手不能从ASP.NET网页嗅探SOAP传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我已经成功地使用招从两个测试夹具,控制台应用程序和Web项目嗅探Web服务的流量。

今天,我发现我不能够再如果我正在我的web应用程序(这是一个ASP.NET网站,在IIS上本地托管)嗅出那种流量。我看到所有和本地流量,但网络业务流量只是走了(因为我看到的响应调试到code中的服务被击中)。

我仍然能够成功地嗅探测试夹具或控制台应用程序在同一个解决方案(完全相同的环境)SOAP请求和响应。

如果它是一个窗口(我在Win7的)安全更新或喜欢它永远不会工作,我猜(除非它影响只有通过IIS路由流量)。

我应该寻找可能导致出现这种行为

任何指针AP preciated!

注意 我可以看到当地的交通,但不是SOAP请求/哪个不是本地反正托管Web服务的反应(这是一个沙箱另一队提供)

修改:配置的该位的伎俩(在里克施特拉尔的博客中找到)

 < system.net>
    < defaultProxy>
      <代理
        usesystemdefault =假
        bypassonlocal =真
        proxyaddress =htt​​p://127.0.0.1:8888/>
    < / defaultProxy>
  < /system.net>


解决方案

什么是的客户的Web服务的? ASP.NET?

除非您配置ASP.NET使用代理ASP.NET流量不代理。这有可能/可能是在app.config或machine.config中改变使得流量不再得到代理?

您应该看看本节:http://www.fiddlerbook.com/fiddler/help/hookup.asp#Q-DOTNET

So far I've been successfully using fiddler to sniff web service traffic from both test fixtures, console apps and web projects.

Today I noticed I am not able anymore to sniff that kind of traffic if I am running my web application (it's a ASP.NET website, hosted locally on IIS). I see all the local traffic but the web service traffic is just gone (the service is being hit as I do see the response debugging into the code).

I am still able to successfully sniff soap requests and responses from test fixtures or console apps in the same solution (exact same environment).

If it was a windows (I am on Win7) security update or the likes it would never work I guess (unless it affects only traffic routed through IIS).

What should I be looking for that could cause the emergence this behavior?

Any pointers appreciated!

NOTE: I can see local traffic, but not the SOAP request/responses to the web service which is not hosted locally anyway (it's a sandbox another team is providing)

EDIT: This bit of configuration did the trick (found on Rick Strahl's blog)

  <system.net>
    <defaultProxy>
      <proxy
        usesystemdefault="False"
        bypassonlocal="True"
        proxyaddress="http://127.0.0.1:8888"/>
    </defaultProxy>
  </system.net>
解决方案

What's the client of the web service? ASP.NET?

ASP.NET traffic isn't proxied unless you configure ASP.NET to use a proxy. It's possible/likely that the app.config or machine.config changed such that traffic is no longer getting proxied?

You should have a look at this section: http://www.fiddlerbook.com/fiddler/help/hookup.asp#Q-DOTNET

这篇关于提琴手不能从ASP.NET网页嗅探SOAP传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 21:23