Welcome to MSDN Blogs Sign in | Join | Help

June 2008 - Posts

JSON Service Speed

I've been playing with the DataContractJsonSerializer that comes with Orcas recently to produce some JSON-based services. DataContractJsonSerializer works just like any other XmlObjectSerializer, except of course that the serialization output looks nothing

Framework Repairs

Spotted on Aaron Stebner's blog last night is an article for repairing or uninstalling Orcas from the command line . Having these commands handy is tremendously useful when you need to test installation and machine configuration issues. It's a lot easier
Posted by Nicholas Allen | 1 Comments
Filed under:

Another Last Call for XML Schema 1.1

New working drafts have been published for XSD 1.1, which starts a last call period for comments lasting from now until September 12th. The previous last calls in 2006 and 2007 resulted in a substantial number of comments and revisions. You can get the
Posted by Nicholas Allen | 0 Comments
Filed under:

PInvoke Interop Assistant

I noticed a new tool on CodePlex the other day called the PInvoke Interop Assistant that automatically converts between managed and unmanaged type signatures. In addition to converting API functions, it also pulls together all of the structures and types
Posted by Nicholas Allen | 3 Comments
Filed under:

Security Session Inactivity

What does the InactivityTimeout on a secure channel do? The inactivity timeout on a message security channel controls how long the channel will allow pending security sessions to linger in its cache before giving up on them. This is completely different

How WebServiceHost Works

WebServiceHost is a new feature in Orcas that makes it easy to put up simple web services that are built on HTTP and POX. However, there's no requirement that forces you to build REST and POX services using WebServiceHost. WebServiceHost exists to make
Posted by Nicholas Allen | 1 Comments
Filed under: , , ,

Mapping Client Certificates

Whenever my service receives a message the service operation fails because the user identity is not mapped to a Windows identity. How can I make this mapping? What's probably going wrong is that the user identity is specified by a certificate but there's
Posted by Nicholas Allen | 1 Comments
Filed under: , ,

Serializing XML to XML

How should I represent raw XML content in a contract? It seems like it would be really easy to have within the large blob of XML that makes up a message, a small blob of XML. However, it's more challenging to deal with that situation than you might expect

Other Technologies You Might Find Interesting

There were two CTP releases recently of technology that don't directly focus on web services but you might find that they make developing services easier. The first technology is called Velocity. Velocity is a platform for building distributed caches
Posted by Nicholas Allen | 1 Comments
Filed under: ,

Acting on Open

How do I run a custom event once when the service is first started? The easiest way to execute some custom code when a service is started is to hook the service's Open method. Although the Open method has two different moments in time that you might be
Posted by Nicholas Allen | 1 Comments
Filed under: , ,

Serialization Temporary Assemblies

The XmlSerializer is one of the options WCF provides for mapping between XML and strongly-typed objects. An XmlSerializer is generally preferred over other serialization approaches, such as a DataContractSerializer, when the description of the type already
Posted by Nicholas Allen | 5 Comments
Filed under: ,

Network Monitor 3.2 Beta

Earlier this week a new beta release came out for Network Monitor. Although the beta has a variety of new features, the one I'm most interested in is the change to the capture engine to reduce the number of dropped frames. I've had problems in the past
Posted by Nicholas Allen | 0 Comments
Filed under: ,

You Are Here

Inside of a service method, how do I know where the message was delivered? Without defining what distinguishes a location it's hard to explain where 'here' is. I've got a few guesses though based on the most common variations of this question: OperationContext.Current.IncomingMessageHeaders.To
Posted by Nicholas Allen | 1 Comments
Filed under: , , ,

Web Service Webcasts in June

Five webcasts are coming this month to talk about some of the new web service features in Orcas. Each webcast is aimed at developers and lasts 60-90 minutes. Beyond the Endpoints with Windows Communication Foundation with Juval Lowy (Level 100) Wednesday,
Posted by Nicholas Allen | 1 Comments
Filed under: , ,

Tracing Network Calls

Many common networking problems can be diagnosed by tracing System.Net events. This is often much easier than setting up packet captures or other software, particularly if you're working on a production machine. Since tracing is a part of the framework,
Posted by Nicholas Allen | 2 Comments
Filed under:

First Web Browser on Windows

The first web browser for Windows was released 15 years ago by Thomas Bruce of the Cornell Legal Information Institute. June 8th marked the 15th anniversary of the 0.1 release, with a succession of followup releases soon after. Cello 0.2 was released
Posted by Nicholas Allen | 0 Comments
Filed under:

Silverlight 2 Beta 2

A promised Beta 2 was released later last week. In this case, later meant Friday after everyone went home so I updated the original article with a link to the download over the weekend. That means this doesn't count as the post for today. Scott Guthrie
Posted by Nicholas Allen | 0 Comments
Filed under: , ,

Forwarding Transactions

I want to receive messages that contain a transaction and forward those messages to another service. How do I configure WCF to accept transactions without executing the service method under a transaction? In normal transactional messaging processing you
Posted by Nicholas Allen | 1 Comments
Filed under: ,

Improving Web Services Security Beta Guide

The WCF Security Guide content that I've mentioned a few times before is now done with early drafts and has been rolled up into a beta release of the full book. There's a ton of content in the real thing on top of what you've been seeing in the drafts.

Silverlight 2 Beta 2 Coming

At TechEd yesterday the next beta release of Silverlight 2 was announced to come out later this week. In Beta 2 you'll be much closer to seeing the complete subset of WCF that has been ported to the Silverlight platform. In particular, the work we've
Posted by Nicholas Allen | 0 Comments
Filed under: , ,

Quotas for Copying Messages

Is it possible to copy a very large message? The CreateBufferedCopy method of Message requires a quota parameter that is only integer sized. There has always been a direct way around the problem of copying messages, which is that any message allows you

Managed Services Engine June CTP

I'm a big fan of using service virtualization to solve a variety of problems with developing and managing web services. The Managed Services Engine is a solution built on top of WCF to supply a repository-based runtime and management tool for service
 
Page view tracker