I am new to .NET Platform and very new to Web services.
I have been developing a system which is a Windows Application (which is 40% complete, and I have been working on it for a month). All my classes, base classes, DAL, BLL etc are in a Class Library (. DLL file) that are managed in different namespaces for example:
Expand|Select|Wrap|Line Numbers
- using Example.DAL;
- using Example.BLL;
- using Example.Objects;
- using Example.Objects.Bases;
- using Example.Objects.Collections;
- using Example.Objects.Interfaces;
Now my project manager saying that, this project has to be a smart client. Meaning that Windows Application will communicate with a web service. Before there were a reference added to my Windows Application.
But, now
Anyway, I have added an ASP.NET Web Service to my current solution, and added a reference to the Class Library that I am working on it.
On the other hand in my Windows Application, I added a Web Reference to the Web Service that I have created.
Now my problem is, I want to have access to all the namespaces and classes inside those namespaces through the Web Service.
For just testing, I also tried to write the following code in the Service.cs under App_Code Folder
Expand|Select|Wrap|Line Numbers
- public Example.Objects.Interfaces.IAccountsController GetAccountsController()
- {
- return new Example.BLL.GetAccountsController();
- }
Cannot serialize interface Example.Objects.Interfaces.IAccountsController
Thanks in advance
Munim