Mike Taulty's Blog
Bits and Bytes from Microsoft UK

Browse by Tags

Blogs

Mike Taulty's Blog

Elsewhere

  • Note to self on HTTP namespace reservations

    I used to have lots of hassle around reserving portions of the HTTP namespace so that ( e.g. ) WCF services can listen on them. I remember writing about it here in the past. In more recent times, I avoid all that stuff altogether and just use a simple netsh command and this is a reminder to myself of how to do that because I forget every time so here’s the link for “next time”; Configuring HTTP and HTTPS on MSDN
    Filed under: , ,
  • Silverlight & WCF PollingDuplex Channel

    Interesting blog post with some performance numbers around the PollingDuplex channel in Silverlight 3.
    Filed under: ,
  • WCF 4 and WF 4?

    Two fantastic articles up at MSDN around WCF and WF in V4.0. A Developer’s Introduction to Windows Communication Foundation (WCF4) in .NET 4 Beta 1 A Developer’s Introduction to Windows Workflow Foundation (WF4) in .NET 4 Beta 1
    Filed under: , ,
  • Silverlight, WCF & TransportWithMessageCredential Security

    This post is made from a train where I got bored and noticed an email in a discussion list folder that mentioned that Silverlight could do WCF authentication using TransportWithMessageCredential security. I’m not at all sure if this is a new thing and suspect that it’s more likely that it’s always been there and I’d just missed it but it fell into the category of “learning something new every day” :-) Regardless, I had a quick experiment with it – essentially TransportWithMessageCredential means that you’re using the transport ( e.g. in Siverlight this means HTTPS ) to ensure the privacy of the message that you’re transmitting and, because of that, it’s ok to transfer some credential as part of the message. This is similar to using basic/digest authentication over HTTPS except in that case it’s the HTTP protocol that’s transporting the credentials whereas in this case it’s the SOAP message that’s transporting them. One of the nice things about that is that those credentials can flow straight into WCF code in order...
    Filed under: , ,
  • WCF, Type Names and BehaviorExtensionElement

    This is one purely for a search engine. If you’re ever looking at WCF and adding a BehaviorExtensionElement in order to add custom behaviors then take care if you see an error message like; "Verify that the extension is registered in the extension collection at system.serviceModel/extensions/behaviorExtensions" It looks like a bug ( see report here and here ) in that if you use a typename like this in your config file; <extensions>   <behaviorExtensions>     <add name="clientInterception"          type="ProductsApplication.MyInspector,ProductsApplication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>   </behaviorExtensions> </extensions> then you’ll see a failure whereas if you use one like this; <extensions>   <behaviorExtensions>     <add name="clientInterception"          type="ProductsApplication...
    Filed under: ,
  • Silverlight 3 – Experimenting with WCF’s Binary XML Encoder

    I had a quick look at the binary XML encoding for SOAP messages with Silverlight 3’s updated WCF library. One thing that struck me in all this is that it looks like (i.e. as far as I can tell so far with reflector) that the WCF stack has gained binary XML encoding but hasn’t gained MTOM XML encoding. Until now, Silverlight just had the basicHttpBinding (plus a polling duplex variant) and the Basic Http Binding is about as interoperable thing as you can get so I was a bit surprised that the next step looks to be binary XML (proprietary) and not MTOM XML (standarised). Regardless…I had a quick experiment with it and built a service which I configured up with a custom binding as in; and then I just pointed Visual Studio at the service and did an “Add Service Reference” and all was good. I had a quick look with Fiddler to try and make sure that it’s doing what I think it’s doing and that’s pretty much that :-)