Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Messages   (RSS)

Messaging Additions in Orcas, Part 4

Today wraps up the series on detailed messaging changes in Orcas. You can get the whole series here as well as the previous high-level overview of new Orcas features I did. Messaging Additions in Orcas Messaging Additions in Orcas, Part 2 Messaging Additions
Posted by Nicholas Allen | 1 Comments
Filed under: , , , ,

Producing Typed Messages

How do typed messages get created from an object that has a message contract? There seem to be a lot of examples that talk about how messages get produced when they're described by data contracts but relatively few descriptions of the equivalent process

Reading Messages for Validation

How do I perform XML validation against an entire message? There is a method to read the body of the message but it's only possible to read headers one at a time. Although it sounds more complicated than it really is, a straightforward way to read an
Posted by Nicholas Allen | 2 Comments
Filed under: , ,

Not Omitting the XML Declaration

Why doesn't a message start with an XML declaration? The XML declaration is a processing instruction at the beginning of an XML document that gives information about the format and logical structure of the document. You've probably seen the most commonly

Basing Authorization on the Message Body

How do I use a field in the message to answer an authorization request in ServiceAuthorizationManager? There are two ways to go about doing this. The first makes use of a new feature in Orcas while the other is potentially more flexible and definitely

Get a Real XML Parser

Today's post is more observational than informational. Enjoy. It's sometimes possible to write XML without having an XML library. If your XML documents are sufficiently similar and templated, then you can craft validly formed XML through little more than
Posted by Nicholas Allen | 1 Comments
Filed under: ,

Understanding MustUnderstand

The MustUnderstand attribute is frequently misunderstood because people assume that it must be much more complex and powerful than it really is. I explained the mechanics of using MustUnderstand last year but today's article is about some of the misconceptions
Posted by Nicholas Allen | 1 Comments
Filed under: ,

Printing Flexible Message Headers

When a message header supports multiple representations, which version is used when the message header is printed? A message header is a piece of data about the message that's carried on the wire somewhere apart from the message contents. When using an
Posted by Nicholas Allen | 1 Comments
Filed under: , ,

Body is a Stream

I've answered this question before but it continues to keep being asked so I'll answer it again. This comes up most often when someone is trying to log messages, either through the official message logging feature or on their own by calling ToString.
Posted by Nicholas Allen | 5 Comments
Filed under: , ,

XML Support

What kinds of XML do messages support? This isn't a simple question because, like many parts of a framework, it's important to distinguish what could possibly be done given enough time versus what could easily be done given the components that ship in
Posted by Nicholas Allen | 4 Comments
Filed under: , ,

Message Disposal

My service operation has an untyped contract and I'm trying to save the messages that it receives for processing later. However, the messages always say that they are closed before I can read them. Why are the messages closed? Messages are good for a

Data Contract and Message Contract

I have an existing web service that I need to replace with a WCF web service. How do I choose between using a data contract and a message contract? There are actually three choices to consider for describing the messages that your service uses: data contracts,

Reader Quotas with Untyped Messages

I have an operation contract that uses untyped messages. When using the message, I get an error telling me to change the quota settings on the XmlReader. Where are these quotas located? I'm not using an XmlReader. A message represents an XML InfoSet.

Just the Headers

How do I change the HTTP status code of the response that is sent back when using a one-way contract? The result of using a one-way contract is to automatically send back an empty HTTP response when the service method is called. Sending back this response
Posted by Nicholas Allen | 6 Comments
Filed under: , , ,

Streaming and ToString

WCF supports message transfers using either a streamed or buffered data model. A buffered model uses contiguous blocks of memory to store the data. A streamed model provides an extra layer of indirection to buffers. The streamed model uses an interface
Posted by Nicholas Allen | 1 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker