Calling WCF Services from .NET 1.1

Published on: Author: Rob Windsor Leave a comment

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: []




Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>