c# - Can't pass a List<Guid> as a parameter to a web-service in SL3 -
i have following web-method:
namespace messageservice{ ... [webmethod] public servicereturncodes setmsg(list<guid> ids, datetime processdatetime) { bl.setmsg(ids, datetime.now); } }
but when call method:
public list<guid> ids = new list<guid>(); ... service.setmsg(ids, datetime.now);
i following error: argument '1': cannot convert 'system.collections.generic.list' 'messageweb.messageservice.arrayofguid' can't figure out arrayofguid
, why tries convert.
i able use arrayofguid
type create list , pass parameter:
arrayofguid ids = null; ids.add(id); .... service.setmsg(ids, datetime.now);
Comments
Post a Comment