Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Contracts   (RSS)

Setting the Configuration Name

What's the difference between the Name and ConfigurationName on service contracts and behaviors? The Name property sets the name of the service in metadata while the ConfigurationName property sets the name of the service in configuration. Metadata is

Private Data Members

Why does a data contract with private or internal members generate a proxy with public fields? The obvious answer is that the representation for data contracts doesn't contain information about member visibility but that just leads to the question of

Configuring Protection Level

Is it possible to configure the protection level for message parts at runtime? Only certain configurations make doing this particularly easy. When using transport security with Windows credentials, the WindowsStreamSecurityBindingElement allows you to

DataMember Best Practices

I was asked to share a list of best practices I wrote for data contracts and data members so here it is: Do apply the DataMember attribute only to properties rather than the corresponding fields. Do not use type inheritance to version a data contract.

Scopes of Encryption

This article is primarily an introduction on protecting message data since the topic overall seems to cause some confusion. The source of confusion is what it means for a service to define a contract for protecting data. Data protection flows from two

Differences in Guid Serialization

Why do the guids in my contract turn into strings when generating a client? You're probably mixing different types of serializers between the client and service. There's nothing wrong with this and the generated client will work correctly but you don't

Importing and Exporting WSDL Annotations

How do I add custom annotations to the contracts that are generated from WSDL? You first need to start with an IWsdlImportExtension. Your extension gets called each time a contract is discovered during import. Processing happens in multiple passes so

Detecting Metadata

How do I figure out during dispatch whether a request is destined to be a metadata request or a normal application request? The reason you might care whether a request in flight is for metadata or not is because of security policy. You might want to permit

Policy Primer Finalized

After six weeks of comments and editing the primer on WS-Policy 1.5 that I mentioned earlier has been published by the working group. The primer is an explanation of how to use policy with web services along with best practice guidelines for policy authors.

Ignoring Bad Requests

I have a one-way operation that processes requests and can sometimes fail. When the operation fails, the client receives a fault notification. How can I make the operation ignore the bad requests and not send back a fault notification? This question indicates
Posted by Nicholas Allen | 3 Comments
Filed under: , ,

ContractNamespaceAttribute

Back when I did an overview of custom namespaces , I omitted any namespace declarations that wouldn't appear in the final metadata. One of those declarations is the default namespace for data contracts. I had two example data contracts, one for faults

Help for Policy Authors

The W3C Web Services Policy Working Group is putting together a pair of documents to help policy users and authors with the new version of WS-Policy. This includes an explanation of how policy works and best practices for policy authors. There's currently

WS-Addressing Metadata and WS-Policy Completed

Two new standards were published yesterday by W3C that cover various aspects of web service metadata. WS-Policy is one of the family of general mechanisms used to describe service requirements and capabilities. Policy attachments supplement the general

Metadata is Locked

Why aren't the changes that I programmatically make to the service contract reflected in the downloaded metadata? This is another common question around the confusion between the design time behavior and run time behavior of the system. The configuration
Posted by Nicholas Allen | 2 Comments
Filed under: , ,

Semantic Annotations for WSDL

The other day the W3C released a new recommendation called Semantic Annotations for WSDL and XML Schema . Semantic annotations are used to connect an element in a structural model to an element in a semantic model. The semantic model element describes
Posted by Nicholas Allen | 0 Comments
Filed under: ,
More Posts Next page »
 
Page view tracker