Browse by Tags

All Tags » .NET 3.5 (RSS)

Case Switching on CLR Types by jdanforth

As most .NET developers know, you cannot do case/switch on CLR types and one of the reasons for it was explained pretty well years ago by Peter Hallam on the C# team . But there are many cases where you would like to iterate through a list of objects...
Filed under: , ,

Bad Request With WCF Service in Cassini On Windows 7 Beta by jdanforth

Trying to run a WCF service in Cassini on your Windows 7 Beta (7000) machine and get this error? The remote server returned an unexpected response: (400) Bad Request. Unless you’re running your service with basic http binding or with security specifically...
Filed under: , ,

Turn Windows 7 Features On or Off by jdanforth

I’m trying to install/add IIS features to my Windows 7 beta build 7000 laptop. You got pretty fine grained control over these features in Windows 7, and it’s not easy to know what you really need. I need to run WCF services on my machine, so I’m turning...
Filed under: , ,

Integration Testing WCF Services with Unity by jdanforth

I've been blogging a few times now about using Unity with WCF, but how do you integration test your service in an easy way without? The way I (and many others) do integration tests for a WCF service is by setting up my own service host and starting the...
Filed under: , , ,

WCF Client Calling ASMX Service with Soap Headers by jdanforth

Need to send soap headers from WCF (Service Reference) clients to older ASMX services? The ASMX service not handling the header properly? It may have to do with namespaces being set in the soap header XML in a way differently from what the ASMX service...

LINQ to XML in VB.NET and Using the Right Language for the Job by jdanforth

I'm almost always using C# in my .NET projects, unless I'm doing Office automation where the VB-way of dealing with optional parameters helps out making the code a bit cleaner. The last week we've been upgrading ASMX-clients to become WCF-clients for...
Filed under: , ,

ASP.NET MVC Preview 5 Released by jdanforth

Hey, I'm just helping to spread the word! A sampled a few links and quotes that has already been posted to blogosphere for your pleasure and knowledge. :) Download it here -> http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=16775...
Filed under: ,

Auto Postback with Javascript in ASP.NET MVC by jdanforth

I've looked this up twice now so I'm posting it to my blog for future reference and as a quick-tip for others. Say you got a web page with a dropdown/select listbox and you want to reload/auto postback the page when the selection changes. One way to do...
Filed under: ,

Returning Json from RESTful Interface with WCF by jdanforth

Someone commented on an earlier blog post I did on REST, POX/POJO and WCF and the comment read: How about REST WCF bits from .NET 3.5 SP1? Is it possible now to let the user decide in which format he wants the response (xml or json) like MySpace API for...
Filed under: , , ,

More on RESTful Service with WCF and POX/POCO by jdanforth

Kirk Eveans wrote a blog post about Creating RESTful Services Using WCF , which gives you a good understanding of how to get started with REST on WCF. In his sample, Kirk has 2 methods in a REST interface: [ ServiceContract ] public interface IService...
Filed under: , ,
More Posts Next page »