WCF Online Test

You are creating a Microsoft Windows Communication Foundation (WCF) service that will use transport-level security using Secure Sockets Layer (SSL) over Hypertext Transfer Protocol (HTTP) to provide message confidentiality and integrity.

The service will authenticate client applications using a certificate.

You need to write code to configure security properties for the binding.


You are using Microsoft Windows Communication Foundation (WCF) and Microsoft .NET Framework 3.5 to configure a service application. Another developer created an interface named IReservationService that represents a service contract. This interface is part of the BcdTrain namespace. A class named LocalHotelService implements the interface. The developer applied the ServiceBehavior attribute to the LocalHotelService class and set its ConfigurationName property to HotelReservationService. You are hosting the service in a custom application.

You need to define the service in the application configuration file.

Which configuration should you use?


You create a Microsoft Windows Communication Foundation (WCF) application. A class named DataProcesser implements an interface named IDataProcessing. The IDataProcessing interface defines three methods named LoadData, ProcessOrders, and ProcessInvoices.

You apply the ServiceContract attribute to the IDataProcessing interface, and you set the attribute's SessionMode property to Required. You apply the OperationContract attribute to all three methods, and you do not set any properties of the attribute. You do not apply any attributes to the DataProcesser class.

The DataProcesser class contains a DataSet instance named data. This instance must be instantiated when the LoadData method is called. Its state must be maintained when the same client application subsequently calls the ProcessOrders and ProcessInvoices methods. However, each client application connection must use a different DataSet instance.

You need to ensure that the DataSet instance named data maintains its state.

What should you do?


You create a Microsoft Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The service implements an interface named IFinance, which is part of the BcdTrain namespace. You host the service in Microsoft Internet Information Services (IIS) 6.0. The service is accessible at http://www.bcdtrain.com/Services/Finance.svc. The service is configured to accept Simple Object Access Protocol (SOAP) requests only.

You use Microsoft Visual Studio 2008 to generate a service proxy for a client application. The proxy interface is named IFinanceProxy, which is part of the Client namespace. The client application does not reference custom assemblies that the service uses.


You create a Microsoft Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The service is stateless and thread-safe.

You want to ensure that the service provides optimum performance and scalability and that each call to the service is executed by the same service instance.


You create a Microsoft Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5. The service accesses a Microsoft SQL Server 2008 database by using integrated Windows authentication. Only the service account can access the database. Client applications send Simple Object Access Protocol (SOAP) requests over the Internet to the service.





























Join the .NETCommunity
Description:

WCF

Tags:

wcf  asp.net  C#

Discussion

Valles45

The professional modifying devices. Include added functions https://vivavideodownload.co very customer friendly. Make your videos a lot more.

1132 days 21 hours 52 minutes ago

TechNet Consultancy
PMP and MCT Trainer with 13 year of experience
User
3 Members Recommend
57 Followers
Tests: 3

Your Facebook Friends on WizIQ

More Tests By Author

Project Management Professional (PMP)
10 Questions | 1855 Attempts

ASP.Net 3.5
10 Questions | 3904 Attempts