You're returning a string
:
public string GetUsers(string authenticatedToken)
So the public definition for the web service is only going to expose information about a string
. There's nothing in the public interface regarding your class, so the web service doesn't advertise any information about your class.
Return a strongly-typed instance of the class. Something like this:
public IEnumerable<User> GetUsers(string authenticatedToken)
Then the generated web service code will include a definition of the type being returned, so consuming clients will be able to understand that type. (And, for example, generate a local analog of that type if the consuming client includes code-generating capabilities. It wouldn't be the same type from an assembly perspective, but across a service boundary that shouldn't really be a concern.)