Latest WCF stories

Calling a WCF service from a client without having the contract(blogs.microsoft.co.il)

submitted by idofidof(215) 2 days, 13 hours ago

I was asked yesterday in the Hebrew C#/.NET Framework MSDN forums a tough question – is it possible to dynamically call a WCF service using only the contract name, operation name, and metadata address? The short answer is – YES! To see how, check out the code in the blog post. read more...

add a comment |category: |Views: 7

tags: another

WCF/ASMX Interoperability – Removing the Annoying xxxSpecified when Ad(blogs.microsoft.co.il)

submitted by idofidof(215) 11 days, 14 hours ago

WCF/ASMX Interoperability – Removing the Annoying xxxSpecified when Adding a Web Reference to a WCF Service Today I answered a question in the MSDN forums about consuming WCF from a .NET 2 client, using the “Add Web Reference” option of Visual Studio. Apparently adding a web reference to a WCF service can cause the method signatures on the client side to look different. In this post I explain why that is and how to fix it. read more...

add a comment |category: |Views: 5

tags: another

Improve WCF services testability with simple Dependency Injection(blogs.microsoft.co.il)

submitted by roadanroadan(90) 12 days, 23 hours ago

Dependency injection is a great technique to reduce coupling between components and improve testability. Manually injected dependencies are dependencies which are passed manually to an object's constructor. When using WCF we depend on the WCF run time to create new instances of our service class. This solution provides a way to easily control service class instantiation for any type of WCF service read more...

add a comment |category: |Views: 143

tags: another

WCF Client Proxy Creation Process(gal-segal.com)

submitted by cornetocorneto(135) 13 days, 1 hour ago

WCF enables us to consume a service in 2 ways: adding a service reference or by creating the proxy yourself. Both methods do the same thing – create a proxy class and and using it with the channel factory. Both cases are good, and its a matter of preference which one you use. I tend to use the second one – I prefer creating my proxy and add reference to the service dlls in the consuming app. read more...

add a comment |category: |Views: 5

tags: another

Introducing Unity.WCF providing easy IoC integration for WCF services(www.devtrends.co.uk)

submitted by devtrendsdevtrends(184) 24 days, 19 hours ago

There are numerous blog posts available that explain how to hook up Unity with WCF. Unfortunately, many of these are incomplete, too basic or just plain wrong. Additionally, as far as I can tell, nobody has created a NuGet package to get you up and running as quickly as possible. This post introduces Unity.WCF, an open source NuGet package that (hopefully) just works in most situations, deals with cleaning up IDisposable instances and also provides a nice mechanism for automatically adding WCF behaviors to your services. read more...

add a comment |category: |Views: 104

tags: another

What’s new in WCF 4.5? Improved streaming in IIS hosting(blogs.microsoft.co.il)

submitted by idofidof(215) 25 days, 15 hours ago

What’s new in WCF 4.5? Improved streaming in IIS hosting As promised in my previous post, I’m continuing my mission to inform you of new changes in WCF 4.5. If you’ve ever tried creating a WCF service that uses streamed requests (for example a file upload service) and host it in IIS, you may have noticed a strange behavior in your WCF service – it would seem that WCF is late in receiving the request, as if it was entirely loaded into the memory, and then passed to WCF. So is it streamed? or is it actually buffered? well, it’s both. This is the ninth post in the WCF 4.5 series. This post continues the previous posts on web-hosting features, and this time it is about the improved streaming capabilities of WCF 4.5 when it is hosted in IIS. read more...

add a comment |category: |Views: 140

tags: another

How to NOT store user credentials in a database(blog.goyello.com)

submitted by vivekamarvivekamar(5940) 1 month ago

Sometimes you need to create an application with your own role and user management module. In most cases you are creating it in a simple and understandable way. That way the user information with a password is stored in the database in the same table named User. In this post I will show you why this solution is not safe, why you should omit such structures and how to fix them. read more...

add a comment |category: |Views: 6

tags: another

Validating WCF services with System.ComponentModel.DataAnnotions(www.devtrends.co.uk)

submitted by devtrendsdevtrends(184) 1 month, 8 days ago

All WCF services operations need some level of parameter validation to ensure that the data passed to the operation is present and correct. Two popular methods are manual checking and the Validation Application Block (VAB) from Enterprise Library. This article discusses another option - using the validation features from System.ComponentModel.DataAnnotations. read more...

2 comments |category: |Views: 107

tags: another

WCF Web API - Making REST a First-Class WCF Citizen(tugberkugurlu.com)

submitted by dpetersondpeterson(3464) 2 months, 19 days ago

Applications are continually evolving to expose their functionality over the web for example social services like Flickr, Twitter and Facebook. Aside from social applications, organizations are also looking to surface their core enterprise business functionality to an ever expanding array of client platforms. WCF Web API allows developers to expose their applications, data and services to the web directly over HTTP. This allows developers to fully harness the richness of the HTTP as an application layer protocol. Applications can communicate with a very broad set of clients whether they be browsers, mobile devices, desktop applications or other backend services. They can also take advantage of the caching and proxy infrastructure of the web through providing proper control and entity headers. We are designing specifically to support applications built with a RESTful architecture style though it does not force developers to use REST. The benefits of REST for your applications include discoverability, evolvability and scalability. read more...

add a comment |category: |Views: 238

tags: another

Host a WCF service with SSL and self issued certificate(www.codewrecks.com)

submitted by alkampferalkampfer(1748) 2 months, 21 days ago

When you use SSL for your WCF service it is really useful to be able to work with self issue certificates for dev machine. read more...

add a comment |category: |Views: 3

tags: another

Basics of WCF Security(sanjevsharma.blogspot.com)

submitted by sanjev.sharmasanjev.sharma(579) 2 months, 28 days ago

In last edition of Basics of WCF Security series, we discussed ProtectionLevel Security Setting in WCF. Today’s WCF corner is a continuation on the same topic. As usual, this article assumes that you have a fair understanding of basics of WCF and you have at least written or seen a simple WCF application in action. read more...

add a comment |category: |Views: 10

tags: another

RESTful WCF Service for Windows phone(www.ganshani.com)

submitted by vijaystvijayst(1307) 2 months, 30 days ago

The post explains how to develop a RESTful WCF service. Some configuration has to be done so that the RESTful service is available from Windows phone. read more...

add a comment |category: |Views: 10

tags: another

Load Balancing & Reverse Proxying WCF OData Services(blog.maartenballiauw.be)

submitted by rcashrcash(4144) 3 months, 2 days ago

This article discusses rewriting WCF OData Services to correct errors in XML and using load balancing & reverse proxy. read more...

1 comment |category: |Views: 15

tags: another

Creating a WCF 4 dynamic locator service using discovery extensions(blogs.infosupport.com)

submitted by iiChrisbiiChrisb(94) 3 months, 9 days ago

An article about how to extend the wcf discovery mechanism to also include binding data. read more...

2 comments |category: |Views: 26

tags: another

What’s new in WCF 4.5? Changed default for ASP.NET compatibility mode(blogs.microsoft.co.il)

submitted by idofidof(215) 3 months, 12 days ago

This is the eighth post in the WCF 4.5 series. This post continues the previous posts on web-hosting features. This post is about the ASP.NET compatibility mode default change of WCF 4.5. read more...

add a comment |category: |Views: 3

tags: another

Making Sense with Data Contract (Structural Contract)(kenwong.org)

submitted by canonwcanonw(10) 3 months, 16 days ago

One of the confusing aspects of learning data contract is that WCF offering multiple approaches to define data contract. read more...

add a comment |category: |Views: 5

tags: another