Getting Fiddler to See you WCF Traffic

image.png

There are lots of articles on the internet if you search for WCF Fiddler however it’s not clear what the simplest path to follow is. For me, it turns out that just sprinkling a couple lines of code at the bottom of my windows forms app’s app.config file is all it took.  I got the tip from this post:  http://www.fiddler2.com/fiddler/help/hookup.asp The magic lines are as follows: <system.net>     <defaultProxy>       <proxy bypassonlocal="false" usesystemdefault="true" />     </defaultProxy>   </system.net> </configuration> That’s it!  Now, Fiddler just sees the traffic.  I’m a happy … Continue Reading

A VS2010 Project Made From Post: How to: Host a WCF Service in a Managed Windows Service

MSDN has a very nice article on how to create a windows service that hosts a Windows Communication Foundation (WCF) service.  It explains all the details of doing this in a step by step fashion.  One thing that I often find missing from these articles is the actual Visual Studio project that I can download and play with.  What I usually do is put that together myself (which I’m sure is the author’s intent). To save anyone some time who wants to do the same thing, I’ve created a VS2010 project from the example, added a very simple Windows C# console application that consumes the service, as well as made some small changes in a very nice Windows Presentation Foundation (WPF) calculator project so that the calculator does it … Continue Reading

Create a Simple WCF Web Service and Use In JavaScript With Visual Studio 2008 and .Net 3.5

image2.png

Microsoft has made building a WCF Web Service to communicate with JavaScript very easy in Visual Studio 2008.  In this post, I'll go through the basics of building this app and demonstrate it working.  Included is the project file which might be a help so you can run it yourself.  I have found a lot of other posts on the web about this same topic but have had little luck getting the code to work.  Few authors post projects with actual working code.  I try to as often as I can because I know how frustrating it can be to not be able to get something working. Code Associated With this Article Visual Studio Project First, create an ASP.NET 3.5 Web site.  That is, go into File / New Website and choose ASP.NET … Continue Reading

Using MapPath with WCF Service, Setting aspNetCompatibilityEnabled to true

image.png

I'm just starting out using WCF in an application for the first time.  I'm using Visual Studio 2008 sp1 and created an asp.net web site from the standard create project wizard.  I then created a simple AJAX--enabled WCF Service as follows: I then added some code to the service that looks like the following (using MapPath): … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: