Lev
Lev

Reputation: 3924

Web services Add service Reference .NET duplicating data contracts

How to avoid duplicating data contracts when adding service reference to project? and if there's no way to do this, which classes should I use, duplicated from service proxy or classes which I have referenced to project in usual way?

thanks in advance :)

Upvotes: 0

Views: 222

Answers (2)

Emond
Emond

Reputation: 50672

When you set a service reference you can select the assemblies that contain type that you want to reuse in the Configure Service Reference Dialog Box

Upvotes: 1

abhilash
abhilash

Reputation: 5641

You could use /sharetypes option for the wsdl tool

wsdl [options] {URL | path}

wsdl /sharetypes http://myfooservice C:\foobar\

WSDL tool on MSDN

Upvotes: 1

Related Questions