Calling WCF Services from .NET 1.1

A couple people have asked me recently how they can call WCF Services from .NET 1.1. There's an article on MSDN which describes the process.

ASMX Client with a WCF Service
http://msdn.microsoft.com/en-us/library/ms751433.aspx

I just want to call out one thing that's easy to miss. You want to add the XmlSerializerFormat attribute to the contract of the service that is going to be consumed by the older, non-WCF clients. This is due to a difference in the serialization mechanisms used in WCF and ASMX Web Services.

WcfServiceAsmxClient

If you forget the attribute, you will end up with extra parameters to the operations in your client proxy.

WcfServiceAsmxClient2

Technorati Tags: []

Published Sat, May 17 2008 1:17 by windsor
Filed under: ,