NET services, but in most other cases I sincerely recommend the manual approach.
In this article I’m only going to tell you have, if you need more information check Miguel A.
The biggest advantages of building your proxy manually compared to using the Add Service Reference feature is that you can now share classes and have the same client class implement several service interfaces instead of only one.
The Visual Studio tools have always been crappy at generating code.
The result is acceptable if you are a Microsoft representative selling new technology at some fancy seminar, but it is nothing you want to use in a release version of you application.
The Visual Studio “Add Service Reference” (WCF) feature makes no exception.
The “Add Service Reference” feature might become handy when you need to connect to some none-.
Create a new project for the client and reference the class library you first created.
Instead of going for the “Add Service Reference” option create your own proxy: You can now place useful functions in your data classes and utilize them both on the client and server side. NET 3.5 you can even leave out the Data and Member Contract attributes of the data classes (same as choosing “Reuse types in referenced assemblies” when using thee Add Service Reference feature).
Don’t use the WCF templates as they will only make your life harder on the long run.
Add your service interface to the newly created project: As you can see there is not much new to implementing the service, but now it’s time for the client!
Now you have to give them access to you network to access the that is added as reference?
Castro’s article “WCF the Manual Way…the Right Way“.
Start by createing a basic class library project and reference the System. This library is going to be referenced by both the client and the server.