472,962 Members | 2,957 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,962 software developers and data experts.

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 864

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
by: blekros | last post by:
All, I have a web service client written in VB.NET. It is a class library assembly (.dll file). I made a web reference to a web service and set it to be dynamic, so it puts the URL of the...
by: convert a Class Library to web service | last post by:
can i convert a Class Library to be share in the internet as a web service i what thet all my classes in the Class Library will be shared
by: Steve | last post by:
I want to call my web service from a class library and have that library handle all the wse stuff, so that applications using that library don't have to worry about it. Is that possible? I've...
by: Peter Bradley | last post by:
OK. A bit behind the times, I know; but we're just moving over to .NET 2.0. How on earth do you manage configuration settings in a class library in .NET 2.0? In version 1.1, we used a handy class...
by: OiNutter | last post by:
Hi I have a web service with a reference to a class library with 2 classes; User: The base class Client: Inherits from User There are also some functions which return an object of type...
by: Christiano Donke | last post by:
Is there a way to do this without having to register it computer-by-computer??? tried everything already... but nothign worked out as should.. tks..
by: Coder | last post by:
After deploying main application using Clickonce, Is this possible for this dot net application to download a class library from an ftp or http location (as only one dll) and to use it just in...
by: AliR \(VC++ MVP\) | last post by:
Hi everyone, I'm writing a silverlight 2.0 application that uses a web service. The web service is a WCF web service and it uses a class library that I have written. When I add a method to the...
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.