Rama
Rama

Reputation: 311

WCF Proxy class not generating

I have a WCF service which is used by two client applications, one is a web application and the other is a Windows forms application.

When I add a service reference to the web application it works perfectly.

But, when I add a service reference to the Windows application it doesn't generate the proxy class.

Then I run selected the "Reuse types in referenced assemblies" in configure service reference section and it generates the reference with XML serialization. That is not what I needed because it gives me lot of errors since I'm using GUID everywhere.

Can anyone explain me how to generate the proxy class with runtime serialization? (both client application use same version of visual studio - Vs2010)

I'm really struggling with this and your help is highly appreciated.

Upvotes: 0

Views: 744

Answers (1)

GeekzSG
GeekzSG

Reputation: 973

You can use svcutil to generate proxy class. Add these proxy class in a DLL and then reference it in your Web and Windows application. In this way, you don't need to rely on Visual Studio and will have consistent proxy code for both Web and Windows app

More details - http://msdn.microsoft.com/en-us/library/aa702581(v=vs.110).aspx

Upvotes: 1

Related Questions