views:

287

answers:

2

Hi,

In my wcf service, I am interested in using DataContractSurrogate while exposing the ServiceContract in a particural EndPoint(e.g. WebHttpBinding).

  1. How can I do it ? Implementing IEndpointBehavior?
  2. In addition to that,do I need to implement IWsdlExportExtension?

Thanks,
Adil

+1  A: 

Check out the "Implementing a Surrogate" section at the MSDN page on Data Contract Surrogates.

You can find that page here.

Terry Donaghe