Welcome to MSDN Blogs Sign in | Join | Help

Encoders (RSS)

Binary Http Binding

Do I need IIS7 to use binary with HTTP for WCF? No, all you need is a custom binding because we don’t include a standard binding with that configuration out of the box. Here’s a quick example of putting binary and HTTP together with either code or configuration:
Posted by Nicholas Allen | 0 Comments
Filed under: , , ,

Default Message Encodings

What message encoding do I get if I don't include one in the binding? A message encoding binding element is required for any binding that uses an encoding-aware transport. However, it turns out that most transport binding elements include a default message

MTOM Boundary Markers

What is the string "--uuid:…" doing embedded in MTOM messages? That string is a boundary marker that separates one part of the message from another. This scheme of separating message parts using a unique string is common to many types of multipart messages

Message Framing, Part 3

Past entries that you should have read by now: Next Week, a Series Message Framing, Part 1 Message Framing, Part 2 The next record at the start of every legal exchange in the framing format is a message encoding record. The message encoding specifies
Posted by Nicholas Allen | 3 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

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.

Adding HTTP Headers

Why doesn't anything happen when I try to add HTTP headers from a message encoder? The problem here is a basic issue of timing. Recall the interface contract that a message encoder has with its transport. The transport receives a message from the next

Binary Encodings and Addressing

There are three types of message encodings that come with WCF: text, binary, and MTOM. Text is the traditional way of encoding an XML document; MTOM is an interoperable way to create messages with attachments; and binary is an optimized format. The binary
Posted by Nicholas Allen | 2 Comments
Filed under: ,

What a Binary Encoding Means

There has always been some confusion about what it means to use a "binary encoding" with your web service. The word encoding is used in a very specific sense here, which should also help you figure out the implications of choosing an encoder in the future.
Posted by Nicholas Allen | 1 Comments
Filed under: , ,

Handling Message Encoder Errors

This time it's two questions that have the same answer. What contract does the message encoder have for producing a message from ReadMessage? What should the transport do if the message encoder doesn't produce a message from the buffer you give it? The

The GetProperty Picture

I drew this picture for myself while working on the guidelines for implementing GetProperty . I figured that other people might find it useful as well. One of the guidelines is that queryable properties on design time objects should flow to the corresponding

Implementation Guidelines for GetProperty

This post is just some quick thinking about guidelines for implementing the GetProperty method. These guidelines are still in development so think of this as a draft rather than real guidance at this time. Background: We provide an extensibility point

Some Changes for Channels and Transports in the June CTP, Part 3

Today's look at recent changes covers two cool new features. Better support out-of-the-box for building applications in the POX/REST style. Back in March, I talked about the POX support we added for the February CTP and a bug we found in our implementation

Framing Size Limits for the Tcp and Named Pipe Transports

I've talked about the framing that goes on in the network stack before, but today's topic is a case where the framing actually affects what your application can do. Inside the WCF transport, essentially the uppermost level of the WCF network stack that

Versioning for Addresses, Envelopes, and Messages

The versioning of a message in WCF is a combination of the versioning of the envelope format and the addressing format. In Beta 2, the versioning story is a little out-of-date from where it's going to be for the final release. That's simply due to the
Posted by Nicholas Allen | 2 Comments
Filed under: , ,
More Posts Next page »
 
Page view tracker