WCF Web Programming Help Page

When developing a WCF service using the new web programming features, it’s natural to make sure all the basics are taken care of by entering the service address into a browser.  When the service is running correctly, this page is returned: This indicates the service is running but little else.  There’s lots of other information that…


WCF Web Programming or: How I Learned to Stop Worrying and Love Uri Templates

Using WCF in web programming scenarios is much simplified in Orcas beta 2 (see http://hyperthink.net/blog/CategoryView,category,indigo.aspx and scroll down for more discussions).  Maybe you want to write an app that searches Flickr, how can you use WCF?  Well, define an interface that exposes the functionality you need: [ServiceContract] interface IFlickrSearch {         [WebGet(UriTemplate=“services/rest/?method=flickr.photos.search&api_key={appId}&tags={searchTerms}&extras={extras}&per_page={perPage}”,            BodyStyle=WebMessageBodyStyle.Bare)]         [OperationContract]…


Getting started with LINQ

Here’s a great site with a bunch of samples if you’ve said to yourself “I’m pretty sure I can do this with LINQ, but I’m not quite sure how.” 101 LINQ Samples


Custom SOAP Headers: WCF and ASMX

First the good news, WCF clients should just work with ASMX services that use custom SOAP headers. Now the not so good news, ASMX clients will work with WCF services that use headers, but the object model is pretty funky.  Say you want to do something really crazy like have a header of type string.  The ASMX…


Custom SOAP Headers: WCF and Java

First the good news, WCF clients should just work with Java services that use custom SOAP headers. Now the not so good news, Java proxies generated from the default WCF WSDL won’t include the SOAP headers in the object model.  The root problem is most Java platforms represent headers in WSDL differently than WCF.  In WCF,…


How do I get a DateTime from a UNIX timestamp?

Often when consuming data from a web site, it will represent time with a UNIX timestamp.  This is the number of seconds since January 1, 1970.  It would be nice to turn this into a System.DateTime, but how? DateTime FromUnixTime(Int64 unixTime) { DateTime time = new DateTime(unixTime * 10000000); time = time.AddYears(1969); return time; }…


Coming soon…

I have done much posting in more or less forever, but I have some new stuff on deck.  In the meantime, check out the recent posts at Steve Maine’s blog for some of the stuff I’ve been working on.


WCF Interop Community

There’s no original content in this post, but here’s what people are saying about WCF and ASMX interoperability in the Microsoft forums and other blogs over the last month or so: ASMX WCF method returning a strongly typed collection to a .NET 2.0 client Trouble getting a WCF return a collection to a .NET 2.0…