Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Service Model   (RSS)

Building a Data Contract Serializer Behavior

In configuration there's a DataContractSerializer behavior that I can add to my service, but the class it uses is internal. How do I get the same behavior programmatically? The DataContractSerializer behavior is a shortcut for setting the MaxItemsInObjectGraph

Order Best Practices

Why is setting the Order property on data members recommended when adding fields in a new version of the contract? The data contract versioning best practices recommend taking three steps when adding fields in a new version of a contract. The first recommendation

Contract First Development through Schema

Christian Weyer and Buddhike de Silva have an article in this month's MSDN magazine covering contract-first development with WCF . They go over modeling messages and services through schema and then applying that to build a web service with WCF. They

Data Deserialization Order

Why are the members of a data contract expected in a particular order in order to be read? The order of members is frequently used to build an expectation of what element might be appearing next. Knowing the possible order of data instead of potentially

What’s New in WCF 4: More on Services and Configuration

This list is a bit different in places from what you’ve seen in the beta 1 release and there’s always a chance that things might change again. The third part of the list covers some of the new features for service configuration. I haven’t mentioned some
Posted by Nicholas Allen | 2 Comments
Filed under: , ,

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

What’s New in WCF 4: Performance

This list is a bit different in places from what you’ve seen in the beta 1 release and there’s always a chance that things might change again. The second part of the list covers some of the new features and changes to existing features to improve service

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

Missing Binding Extensions

Why do I get an error “configuration evaluation context not found” when I try to create a custom binding using bindings or binding elements from a library? The evaluation context not found error (or in traces with the identifier System.ServiceModel.EvaluationContextNotFound)

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

Via on Demand

How do I specify a delivery address for messages from a proxy that are different from the service address? Two different addresses are sometimes both referred to as the address for sending messages. There is a logical address, called the To address, that

Collection Name Generation

Last time we were looking at how to replace the default names used for serializing collections , such as ArrayOfKeyValueOfstringArrayOfstringty7Ep6D1, with more intelligible names. However, where did that funny looking name come from in the first place?

Naming Collection Items

How do I replace the names of entries in a collection? By default the names inside of a collection are based on the type or role of the entry. < CheeseMap > < KeyValueOfstringCheeseListLjh4bohd > < Key > Sweden </ Key > < Value

Metadata Client Behaviors

Can I apply client behaviors to a MetadataExchangeClient to change how it retrieves metadata? Once a MetadataExchangeClient is built, you don’t have access to its internals to poke around at the description tree. You need to have set things up ahead of
More Posts Next page »
 
Page view tracker