Kirk Evans Blog
.NET From a Markup Perspective
Translate This Page
Translate this page
Atlanta Microsoft Events
Azure Web Sites
Dallas Microsoft Events
Enterprise Social Computing
Life at Microsoft
SQL Server 2005
SQL Server 2008
SQL Server 2012
Visual Studio 2008
Visual Studio 2010
Visual Studio 2012
Visual Studio 2013
Visual Studio Online
Windows Phone 7
Windows Presentation Foundation
Windows Server 2008
Windows Server 2012
Windows Workflow Foundation
XML Web Services
Browse by Tags
Kirk Evans Blog
Tagged Content List
How I Became a SharePoint 2010 MCM
I recently attained the Microsoft Certified Master for SharePoint 2010 certification. I have long wanted to write about the experience, but honestly didn’t know how to begin. After quite a few conversations with friends and colleagues, I thought I would share some insight about the process...
17 Apr 2013
Making The Case for Async Web Parts
This post will show how to make a call to HttpWebRequest asynchronously from a web part and wait on the result or time out. Years ago, I was fortunate to meet Jeff Richter and attend a session he gave on .NET performance . He discussed I/O completion ports and showed why any calls from an ASP.NET...
24 Oct 2011
Programmatically Creating a SharePoint Content Type
I have been working on a project that requires creating a content type programmatically. Admittedly, it took me awhile to figure it out. You can create a content type for SharePoint declaratively in a feature using XML similar to the following: <? xml version ="1.0" encoding...
29 Apr 2011
What is a Dedicated Support Engineer?
For the past 7 years, I worked in Developer Platform Evangelism to talk to customers about the latest and greatest technologies that Microsoft would soon be releasing, and worked to gain early adopters of the technologies. This was a very fun job, but I desired a change. This past July, I...
24 Mar 2011
SQL Server Provider for Claims-Based Authentication in SharePoint 2010
This post shows how to implement FBA claims-based authentication for SharePoint 2010. We will use the ASP.NET membership and role provider to authenticate users to our SharePoint 2010 site. Overview SharePoint 2007 introduced the ability to use the ASP.NET Membership Provider to authenticate users...
9 Jul 2010
Getting Friends From Twitter With WCF
Today, we’ll show off a bit of WCF for working with Twitter. The last time I posted on using Twitter with WCF, I showed how to update your Twitter status using WCF . The rest of the Twitter API is just as easy to work with when you are using WCF. Since the last post on that used an...
3 Oct 2009
Getting XML Data From a SharePoint List – The Easy Way
Steve Pietrek has a great link blog ( Steve Pietrek - Everything SharePoint and Office ) that aggregates blog postings on SharePoint and Office. If you are at all interested in seeing what’s possible with SharePoint, I highly recommend you subscribe to this great resource. In his April 30th...
1 May 2009
Export Your OPML from Outlook
Lately I have fallen in love with Office programming, but I’m still a complete n00b at it. I was pilfering through my RSS feeds the other day, and realized I didn’t have a way to export the feeds list as OPML. Hmm… good time to open Visual Studio and start tinkering. Here is what I...
18 Mar 2009
Convert XElement to XmlNode (and Convert XmlNode to XElement)
This is just way cool. Check out Eric White’s blog for a slick use of extension methods to make it easier to convert types in the System.Xml namespace to types in the System.Xml.Linq namespace , and vice-versa. Here’s a quick teaser: XElement e = new XElement( "Root" , new XElement...
13 Mar 2009
XmlWriterSettings Encoding Being Ignored?
I had an interesting exchange in an internal mailing list today, and thought that my readers could possibly benefit from this clarification as well. Scenario You are working with the XmlWriter class and trying to write the contents to something. You are expecting the XML declaration to look like: <...
11 Aug 2008
Creating RESTful Services Using WCF
A question popped up on an internal email distribution list today about how to expose a WCF service using WebGet and how to post POX (plain old XML) to that service using the .NET 3.5 WebInvoke attribute. That part's easy, but the harder part is figuring out how to use Fiddler as a client to invoke the...
3 Apr 2008
DataBinding WPF to a WCF Service, and Leveraging IValueConverter for Encoded XML
I met with a customer the other day who had an interesting question: how do I databind a WPF app to a WCF service? I thought this was going to be a really quick answer, it turned into another really long blog post. For the service, I am using a slimmed down version of the default service generated...
17 Mar 2008
Modify Message Content With WCF
Plenty of resources talk about extensibility in WCF, and mention IClientMessageInspector and IDispatchMessageInspector as ways to look at the content of a message, usually dumping to some sort of log. In this post, I'll highlight their obvious strength: the capability to change the content of a message...
8 Jan 2008
Using SyndicationFeed to Access a Secure Feed
Prasad asks how to use the SyndicationFeed type in .NET 3.5 to access a secure feed . I have to say, it depends on what you mean by "secure feed." RSS and Atom are typically delivered through HTTP GET with text/xml as the content-type. I have to assume that you are securing that HTTP GET endpoint...
8 Sep 2007
Inline an XML Schema into Your XML Document
A good friend of mine, Derek Noonan, pinged me to ask how to inline an XML Schema into an XML document. For instance, think about a WSDL document that has the schema types inline with the WSDL document itself, you would want to figure out how to pull the schema information from the WSDL document and...
5 Jun 2007
Some XmlSerializer Control in ASMX
A customer pinged me asking how to control various aspects of the XmlSerializer in ASMX. Here are a few of the ways that you can control the XmlSerializer and how it projects its contract through WSDL. using System; using System.Web.Services; using System.Xml; using System.Xml.Serialization;...
22 May 2007
Web Experiences Events in NYC, LA, and Denver
Come to the Web Experiences events in New York City (May 31st), Los Angeles (June 8th), or Denver (June 15th). At the Web Experiences Events we will demonstrate Microsoft’s next generation of technologies such as Silverlight, Windows Presentation Foundation, Windows Communication Foundation, Windows...
9 May 2007
A Nostalgic Look at Using XMLHttpRequest with SOAP
27 Apr 2007
Those XML Features Are in VS2005, You Don't Have to Wait for Orcas!
InfoQ posts about 5 short demos on features you will find in Orcas . Glad to see some buzz being generated about Visual Studio "Orcas" features, but... The Data team's post (the one that the InfoQ article points to) is a little misleading . The post refers to a recent keynote at VSLive! in San Francisco...
6 Apr 2007
ASMX 2.0 and SchemaImporterExtensions
I like the concept of SchemaImporterExtensions in ASMX 2.0. As you import the schema through proxy generation using WSDL.exe, you can generate your own code to control serialization for the client. This can be a great tool if you have a particularly nasty interop problem and the generated proxy code...
13 Jun 2006
Sorting XML With System.Xml.XPath.XPathExpression
This question came up twice this week, so I thought it warranted a quick post. If you want to retrieve a sorted list of nodes from an XmlDocument instance, there are a couple ways to do this. You can use XSLT, or you can write your own sorting algorithm. The .NET Framework provides capability to provide...
17 Apr 2006
XmlSerializerFactory Is Pretty Cool
The XmlSerializerFactory is a new class in .NET 2.0 that provides a factory pattern over the XmlSerializer. It maintains the cache of generated assemblies so that you can avoid the XmlSerializer leaks . Usage doesn't impact your code much at all. Here is a quick demo that I threw together. I pulled...
8 Mar 2006
Cool Visual Studio 2005 Feature: Snippets and Document Inference
I love learning new featuresof Visual Studio. Today, I saw an email from Chris Lovett where he showed a feature of snippets that I had no idea existed. Intellisense in an XML document will actually create an XML document inferred from an associated schema. Start with an XML schema. Here, I created...
20 Feb 2006
Controlling Proxy Generation via SchemaImporterExtensions
In my previous entry on Solving a WS-Oops with ASMX 2.0 , I hinted at a code smell. One of the things that I started thinking about was how to leverage a SchemaImporterExtension to control the proxy generation. I was thinking about controlling the serialization of the custom token and making it simpler...
29 Jan 2006
A Quick Primer on Namespace Bindings
I sent an email trying to explain to a customer why their SOAP packet was not being processed correctly. In effect, the problem was that an element that was supposed to be bound to http://tempuri.org was redefining its namespace binding using xmlns="". A quick example: < transportation xmlns =...
23 Nov 2005
Page 1 of 3 (59 items)
© 2015 Microsoft Corporation.
Privacy & Cookies