Fiddler is a nice tool for sniffing network traffic.
It can be downloaded here: http://www.telerik.com/fiddler.
When I needed to sniff my network traffic (NAV Consume Webservice Black-Belt ) I discovered that Fiddler “out-of-the-box” does not show the Network packages from NAV.
This is cause NAV instance is running as a service and Fiddler only looks at processes within your current session.
If you need to sniff the network packages from NAV as well please follow these steps:
This is done like this:
- Go to : C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config
- locate the file machine.config.
- open the file (first create a backup)
- locate the section <system.net> (or create this section at the bottom , within configuration tag).
Update the section to:
<!-- The following section is to force use of Fiddler for all applications, including those running in service accounts --> <system.net> <defaultProxy enabled = "true" useDefaultCredentials = "true"> <proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" /> </defaultProxy> </system.net>
- Restart NAV Service tier.
- (do not forget to remove this section (use the backup from step 3) and restart NAV after sniffing.
This makes the NAV calls visible within Fiddler!