M
Michael Holdgaard
Hi
I've a problem with a type, which is shown twice in the WSDL-file, when
I run my WebService. To simplify things, I have defined the following
type in a C#-unit:
public class User
{
...
}
public class UserList : IEnumerable
{
private ArrayList myuserlist;
...
}
and I have the following webmethods:
[WebMethod()]
[return:XmlArray()]
[return:XmlArrayItem(typeof(User))]
public UserList GetCurrentCourses()
{
...
return userlist;
}
[WebMethod]
[return:XmlElement(typeof(User))]
public User GetUser(string transactionToken, string userid)
{
...
return user;
}
The Userlist contains a list of users, obviously, by in the WSDL-file
User is defined twice. Anyone knows how to fix this problem?
/Michael
I've a problem with a type, which is shown twice in the WSDL-file, when
I run my WebService. To simplify things, I have defined the following
type in a C#-unit:
public class User
{
...
}
public class UserList : IEnumerable
{
private ArrayList myuserlist;
...
}
and I have the following webmethods:
[WebMethod()]
[return:XmlArray()]
[return:XmlArrayItem(typeof(User))]
public UserList GetCurrentCourses()
{
...
return userlist;
}
[WebMethod]
[return:XmlElement(typeof(User))]
public User GetUser(string transactionToken, string userid)
{
...
return user;
}
The Userlist contains a list of users, obviously, by in the WSDL-file
User is defined twice. Anyone knows how to fix this problem?
/Michael