470,855 Members | 1,172 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

Share Class Library Between Web Service and Client

How do I share a class library between a web service and a client. For
example, suppose I have a dll with a namespace Akamojo.Company which contains
a class Person. My web service looks something like this:

using Akamojo.Company;

public Person GetPerson()
return new Person();

In my client, I want to have something like this:

using Akamojo.Company;
using AkamojoService;

public void DoSomething()
Person Person = AkamojoService.GetPerson();

The problem is that Person is ambiguous in my client. It can be either
Akamojo.Company.Person or AkamojoService.Person. The compiler doesn't know
which definition for Person to use, even though they are indirectly the same.

How do I do this correctly?

Jun 14 '06 #1
0 816

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by convert a Class Library to web service | last post: by
7 posts views Thread by Peter Bradley | last post: by
7 posts views Thread by Christiano Donke | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.