Chapter 11: Deploying Web Services with WCF

333

Figure 11-13 The Service Reference Settings window

Most of the items in the Service Reference Settings are advanced options, but focus on the Collection Type setting in the Data Type section. Switch the Collection Type from System.Array to System.Collections.Generic.List and click OK to close. Then change the previous call to GetCustomers to the following:

C#:

List<Customer> customers = svc.GetCustomers();

VB:

Dim cust As New Customer

cust = svc.GetCustomer(newCustID)

Page 356
Image 356
Microsoft 9GD00001 manual 333, The Service Reference Settings window