Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Proxies   (RSS)

Overriding Namespaces from Serialization

I’ve defined my own XML namespaces for the members of a data contract and now when I generate the client proxies I get some ugly CLR namespaces for the types. How do I fix this? The mapping from an XML or WSDL namespace to a CLR namespace is a mechanical

Configuring Client Certificate Credentials

How do I configure a client to provide the certificate for certificate credentials? You need to use the client credentials behavior to provide the credentials that the client will use to authenticate to the service. Here’s the basic template that you

Stumbling on Extended Protection Policy

When generating a proxy I’m getting an error about the extendedProtectionPolicy element not being supported. Why didn’t I see this error before? Extended protection policy is a change to how integrated Windows authentication works that is intended to

Exception Handling Proxy Generator

The WCFProxyGenerator tool on CodePlex has been updated, which is a community contributed tool that generates proxy classes that help manage the lifetimes of the proxy objects. As you might guess from the name the primary way that the proxy class helps

Contract First Development Tool

A beta release of the Web Services Contract First tool is available on CodePlex. This is a Visual Studio 2008 add-in targetting WCF made by the same group in the web services community that did a tool of the same name for ASMX (to tell the two apart,

Tripping over Missing Servers

A common complaint is that the first call on a client object takes some disproportionately large amount of time, usually ten seconds or more, while successive calls are instantaneous. There are many reasons why this might happen so there's no generic

Introduction to Ad Hoc Discovery

Jesus Rodriguez has a description of WS-Discovery that covers examples in WCF 4.0 for ad hoc discovery networks. Ad hoc discovery is the approach that uses broadcast messages to publish and discover resources on the network. The other approach, managed

Debugging a Most Common Problem

Tess Ferrandez takes a debugging look at what happens when you fail to close client proxies in a timely manner. Given the relatively long default time before the server idles out a client (10 minutes) and given the relatively small default number of connected

Proxy Caching Changes

I don't think I ever wrote about the changes made to WCF generated typed proxies in Orcas, although Wenlong had an article about the changes to proxy behavior back when they were made. Generated proxies are the ones produced from the standalone client

No Choice for Data Contracts

I have a schema file that describes a choice between multiple layout formats for a type. How do I build a proxy that matches this schema? The reason that this is probably not working is because DataContractSerializer for the most part does not support

Read Only Data Members

How do I specify that the client proxy should not have a setter for a particular data member? It doesn't make sense for the service to be able to dictate what the client can do with a piece of data. Once data has been put on the wire, you can't stop the

Getting Better Time Formats

Orcas introduced a new DateTimeOffset class that is easier to use for representing absolute times than the original DateTime class. However, if you run svcutil on a contract that contains a DateTimeOffset, you'll get an ugly generated structure because

Avoiding Infinite Schema Chains

I was working on some services with recursive data structures when I noticed that there were a few cases where I would get crashes while trying to generate proxy classes. The problems seemed to be around types that were a sequence of instances of themselves.

System Types in Metadata

It's bad practice to use system types when defining an operation contract. A system type is often a complex composition of primitive types that has no direct analog in other implementations. By using a system type, you bind your service to the particular

Finding a Client Channel

Where can I get the IContextChannel that OperationContextScope requires? OperationContextScope allows you to create a temporary scope in which context for a service operation can build up before and after the operation is actually called. The constructor
More Posts Next page »
 
Page view tracker