Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access classes in another assembly
Message
General information
Forum:
ASP.NET
Category:
Windows Communication Foundation (WCF)
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01596007
Message ID:
01596084
Views:
46
To Viv and Mike

I could but I want everything wrapped in the service, which I somehow have managed , when you add a service reference to your client you can opt to generate classes for your referenced assemblies in your proxy classes and as long as they are declared public and used in your service they are exposed. I found this out the hard way, I had four classes in my DAL ( this is a dummy project while I'm learning ) Employee, Department, Gender and Addresses all declared public but when I added the service reference the proxy only contained definitions for two of them - after some head scratching I noticed the two that were missing were not used in my service ( but I needed them in my client ) so I wrote some stuff referencing them and Voila there they were - I suppose it makes sense, why generate code for nothing ? I hope I get a job soon I haven't worked this hard in years ;-)
Regards,
Peter J. Kane



Pete
Previous
Reply
Map
View

Click here to load this message in the networking platform