Where to put schema when using custom collection?

Discussion in 'ASP .Net' started by Whoever, Nov 11, 2004.

  1. Whoever

    Whoever Guest

    See below. The WSDL looks good, the result is OK but not Schema. Where and
    how should I put it in. Hopfully not manually. Thanks.

    public class aUser {
    public string UserID { get {...} set {...}
    public string UserName {...}
    }

    public class UserList : System.Collection.CollectionBase {
    public void Add(aUser user) {...}
    public aUser this[int Index] {...}
    }

    A web service:

    [WebMethod]
    [return: XmlElement("UserList", typeof(UserList))]
    public UserList getUserList(string search) {
    UserList ul = new UserList();
    return ul;
    }
     
    Whoever, Nov 11, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lloyd Dupont
    Replies:
    0
    Views:
    470
    Lloyd Dupont
    Jul 27, 2003
  2. Markus
    Replies:
    1
    Views:
    1,640
    Markus
    Nov 23, 2005
  3. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,314
    Stanimir Stamenkov
    Apr 25, 2005
  4. Øyvind Isaksen
    Replies:
    1
    Views:
    1,013
    Øyvind Isaksen
    May 18, 2007
  5. Whoever

    Where to put schema when using custom collection?

    Whoever, Nov 11, 2004, in forum: ASP .Net Web Services
    Replies:
    4
    Views:
    181
    Whoever
    Nov 18, 2004
Loading...

Share This Page