I have two WCF services which are logically different and I wish to keep them seperate. They each have an operation which returns the same datacontract. A single silverlight client consumes both services. When I add a service reference in the silverlight client to each service, the single datacontract ends up twice in the generated code. Is it possible to have both service references use the same definition of the datacontract?
From what I’ve read, for non silverlight clients it is possible by compiling the datacontracts into a seperate assembly which is referenced by both the server and the client. However this is not possible with silverlight (at least in silverlight 3).
Thanks,
Rob
Have you tried generating the clients using svcutil. IF you give multiple service endpoints it all work fine but it gives you a ton of errors generating the clients.