Link to home
Start Free TrialLog in
Avatar of zekuczynski
zekuczynski

asked on

Does anyone know how to pass a List<t> to a WCF Service

I have a WCF service that accepts a List<participants> as a parameter and I need to call it from the client ie javascript.  Can this be compeleted?

I'm looking to do something like.
var svc = new EMService();
                var valParti = $('#ddlParticipant').val();
                var list = new List<Participant>();
                var part = new Participant();
                list.Add(part);
                svc.SendMessageAll(list, onSuccess, null, null);
Avatar of Marcus Keustermans
Marcus Keustermans
Flag of South Africa image

Hi there,

As far as I know you are notable to pass generic objects through wcf.

Avatar of zekuczynski
zekuczynski

ASKER

Is there another approach I can take?  Can I pass a collection or list of objects?
ASKER CERTIFIED SOLUTION
Avatar of dxdinh
dxdinh
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That worked.  Thanks.