Avatar of ogog
ogog asked on

C# 2008 Web Services

Hi everyone, let's see if anyone can help me:

I've got two applications, server ( a web service) and client.

Server has a couple of classes that are public and client "references" the "web service".
client can make objects of these classes types and can invoke the properties on them.

However client cannot invoke the methods of these classes.

How do I do this? Also I would like to have a constructor that was not empty but the empty one is the only  one the client sees.

Can anyone help? Couldn't find it on google!
C#Web DevelopmentMicrosoft IIS Web Server

Avatar of undefined
Last Comment

8/22/2022 - Mon

To be able to invoke the methods you have to mark them as WebMethod

c# example:
public int GetOne()
   return 1;

No that's not it. That is only true for the service class, not the others

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes