Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Transports » Answers   (RSS)

Controlling HTTP Connection Limits

I need to make many simultaneous HTTP calls to the same service from my client application. How do I increase the limit on the number of HTTP connections? This setting isn't available on any of the bindings or binding elements but the default limit can
Posted by Nicholas Allen | 3 Comments
Filed under: , , ,

Creating Sessions over HTTP

I've got a sessionful contract that I want to use with HTTP. How do I get the HTTP transport to produce a sessionful channel shape? The basic design principle of channels is that they produce whatever channel shape is their natural message exchange pattern.

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

Interfaces for GetProperty, Part 1

This is more of a reference than anything else. People have asked me what interfaces do something when used with GetProperty on a binding element. Of course, a custom implementation can do whatever it wishes in its GetProperty, so I can only tell you

Setting the Message Via

Can I write a point-to-point router service by setting the Via property for outgoing messages? Like most things, this is going to depend on the specific behavior of the transport channel you're using, but in general the answer is no. The transport channel

Faking Channel Security

I occasionally see people asking how they can fake the security capabilities of a binding. These questions often start off with "I'm getting an error message that a message's required protection level is not being met". Now, I'm not precisely sure why

Manual Addressing

How can a client application control the To address of an outgoing message? I don't want to create a new proxy for every connection. This is one of those topics that I could have sworn that I wrote about but can't find any evidence of it online. Actually,

Proxy Bypassing Behavior

The HTTP transport and binding element have three settings for controlling the proxy behavior. public bool BypassProxyOnLocal { get; set; } public Uri ProxyAddress { get; set; } public bool UseDefaultWebProxy { get; set; } UseDefaultWebProxy controls
Posted by Nicholas Allen | 3 Comments
Filed under: , , ,

Format for Configuring HTTP and TCP Activation

IIS uses some inscrutable strings to configure the activatable bindings of a web site. Here's the minimum you need to interpret a binding and get started working with activation. Activation is controlled by the activationHost.config file. In the list

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

How HostNameComparisonMode Works

How do I configure my service to listen on all of the host names for my machine? How do I configure my service to only listen on one particular host name? I sometimes see these funny + and * characters in URLs when using WCF. What do these characters
Posted by Nicholas Allen | 5 Comments
Filed under: , ,

A Problem with Large Faults

Fault messages have their own quota sizes, allowing you to limit the amount of data you'll process in response to an error. Existing transport protocols don't know about SOAP fault messages, but some of them have their own error reporting mechanisms that

It Hurts When I Set the User Agent

Consider the following simple test server that uses no WCF code at all. using System; using System.Net; class Server { static void Main( string [] args) { HttpListener listener = new HttpListener(); listener.Prefixes.Add( "http://localhost:1000/" ); listener.Start();
Posted by Nicholas Allen | 3 Comments
Filed under: , , ,
 
Page view tracker