You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The component will return custom business objects.
You plan to develop a design strategy that meets the following requirements:
– The component can be accessed by the .NET Windows applications and JavaScript-based Web applications.
– The component can be consumed by the client applications by using the minimum amount of code.
– The least amount of network bandwidth is consumed.
You need to implement the design strategy by using the minimum amount of development effort.
What should you do?
A.
Develop the component as a Web service. Return the business objects as XML.
B.
Develop the component as a Windows Communication Foundation service. Return the business objects as serialized binary objects.
C.
Develop the component as a Windows Communication Foundation service. Return the business objects as JavaScript Object Notation objects.
D.
Develop the component as a Web service. Return the business objects as strings that contain the values of the properties concatenated and separated by a comma.