can anyone find out what d hell is wrong with the last line of this code (c#.net):

cws = new CustomerCardService.CustomerCardWebReference_Service();
cws.UseDefaultCredentials = true;
cwr = new CustomerCardService.CustomerCardWebReference();

List<CustomerCardService.CustomerCardWebReference_Filter> filterArray = new List<CustomerCardService.CustomerCardWebReference_Filter>();

CustomerCardService.CustomerCardWebReference_Filter nameFilter = new CustomerCardService.CustomerCardWebReference_Filter();
           
filterArray.Add(nameFilter);
           
Customer[] custList = cws.ReadMultiple(filterArray.ToArray(), null, 100);

here is the error. really doesn't make sense as iv followed the msdn example fairly closely....

Error 1 Cannot implicitly convert type 'CustomerCardService.CustomerCardWebReference[]' to 'Customer[]'

i published wrong page as service :S

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.