custom types: classes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris

    custom types: classes

    Hi,

    I'm new to web services and I'm having some trouble figuring out how to
    define a custom object that works through the webservice.

    For example, I have the following on the server side:

    public class Token
    {

    private string firstID;

    private string secondID;

    public string getFirstD() { return firstID; }

    public string getSecondID() { return secondID; }

    public void setFirstID(stri ng id) { firstID= id; }

    public void setSecondID(str ing id) { secondID= id; }

    }

    [WebMethod]

    public bool GetResellerList 2(Token token, string languageisocode )

    {

    return true;

    }


    When I view the object on the client side, I can't see any of the properties
    or methods defined in the Token class. What am I missing?

    Thanks,

    Chris


Working...