Exposing WCF class reference method client side

916 Views Asked by At

I have a WCF Service. I add reference of a DLL in the WCF service.Now ddl has a class, i'm able to get access of the class at WCF client side by using the serviceknowntypeattribute but not the functions inside the class.Any solution?

1

There are 1 best solutions below

0
On

I'm guessing that You are using autogenerated code (by Add Service Reference in Visual Studio). This creates a stub for your class (only a container) but it is not actually your class. To use your actual class in client code you must reference it in client project and in service reference advanced options make sure you have 'use types from referenced assemblies' checked.