You create a Visual Studio 2010 solution that includes a WCF service project and an ASP.NET project.
The service includes a method named GetPeople that takes no arguments and returns an array of Person
objects.
The ASP.NET application uses a proxy class to access the service.
You use the Add Service Reference wizard to generate the class.
After you create the proxy, you move the service endpoint to a different port.
You need to configure the client to use the new service address.
In addition, you must change the implementation so that calls to the client proxy will return a List<Person>
instead of an array.
Which two actions should you perform? (Each correctanswer presents part of the solution. Choose two.)
A.
In the context menu for the service reference in the ASP.NET project, select the Configure Service
Reference command, and set the collection type to System.Collections.Generic.List.
B.
In the context menu for the service reference in the ASP.NET project, select the Update Service Reference
command to retrieve the new service configuration.
C.
Change the service interface and implementation to return a List<Person>
D.
Edit the address property of the endpoint elementin the web.config file to use the new service address.