M
Mark Ingram
Hi, how can I use a static function in a web service from a C# app?
I have the following code in a web service:
public class MyClass
{
[WebMethod]
public static Boolean Exists(String check)
{
return false;
}
}
Then in the C# app I try to use the web service:
MyClass.Exists("");
And I get an error saying Exists doesn't exist.
Can you not use static functions? Or am I doing something wrong?
Thanks
I have the following code in a web service:
public class MyClass
{
[WebMethod]
public static Boolean Exists(String check)
{
return false;
}
}
Then in the C# app I try to use the web service:
MyClass.Exists("");
And I get an error saying Exists doesn't exist.
Can you not use static functions? Or am I doing something wrong?
Thanks