How can I use a Class in WebService and Client Application

B

Bernd Brenner

Hi there,

I have a class SyncDB (see code below), which I want to use in both a
WebService AND in a Client Application.

But when creating the proxy class via wsdl.exe, I only can use the
Property "I". All the member functions of the class SyncDB seem not to
be usable on the client application.

Is there a solution for my problem? I tried to make a class library
with all the classes which are used in both projects (windows app as
client and web service). But I cannot reference the library from both
projects.

Thanks in advance,

Bernd from Munich

class SyncDB
{
private int i;

public int I
{
get { return i; } set { i = value;} }
}

public string myFunc
{
return "That's Me";
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top