<ServiceContract0>?
A Windows Communication Foundation (WCF) service implements the following cortract.
<ServiceContract0>? Public Interface lHeloServic e <operationContractQ>
<WebGet(UriTempbte: =“helloname={name}”)s Function SayHello(Byval name As String)
As nng End Interface The implementation is as follows Public Class HelloService
Implements IHelloService Public Function SayHello(ByVal name As String) As String –
Implements lHelloServiceSayHello Retumn “Hello “& name End Function End Cesst The
service is self-hosted, and the hosting code is as follows. Dim stHost As WebServiceHo =
CreateHost() svcHo Open() Consde ReadLine() svcHoaClose() You need to implement
CreateHost so that the service has a single endpoint hosted
http:/Ilocalhost8000/HeloService. Which code segment should you use?
You need to ensure that the service is configured to process multiple orders in one transaction
Your company has an existing Windows Communication Foundation (WCF) service that
allows business partners to place orders. The service uses netMsmqBinding. You find that
processing every order in its own transaction is causing a delay. You need to ensure that
the service is configured to process multiple orders in one transaction. What should you do?
Which code segment should you use?
You are developing a Windows Communication Foundation (WCF) service that contains the
following code segment. <ServiceContract()> Public Interface ICustomerService … End
Interface Public Class CustomerService Implements ICustomerService … End Class The
service is self-hosted in a console application. Older client applications access the service
at http://contoso.com:8080/CustomerService/V1. Newer client applications access the
service at http://contoso.com:8080/CustomerService/V2. You need to ensure that any client
application can access the service at either address. Which code segment should you use?
You need to ensure that the Web service can accept messages larger than 64 KB without generating errors
You have an existing Windows Communication Foundation (WCF) Web service. The Web
service is not responding to messages larger than 64 KB. You need to ensure that the Web
service can accept messages larger than 64 KB without generating errors. What should you
do?
Which message encoding should you use?
A Windows Communication Foundation (WCF) service is responsible for transmitting XML
documents between systems. The service has the following requirements: • It must
minimize the transmission size by attaching the XML document as is without using escape
characters or base64 encoding. • It must interoperate with systems that use SOAP but are
not built on the .NET platform. You need to configure the service to support these
requirements. Which message encoding should you use?
Which attribute should you apply to the MessageProcessor class?
You are modifying an existing Windows Communication Foundation (WCF) service that is
defined as follows; SubmitOrder makes a call to another service. The ProcessMessage
method does not perform as expected under a heavy load you need to enable processing of
multiple messages. New messages must only be processed when the ProcessMessage
method is not processing requests, or when it is waiting for calls to SubmitOrder to return.
Which attribute should you apply to the MessageProcessor class?
What are two possible properties you can use to achieve this goal?
A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP
binding with a custom principal permission mode. The binding requires users to provide
their Windows logon credentials. You need to retrieve the identity of the caller. What are two
possible properties you can use to achieve this goal? (Each correct answer presents a
complete solution. Choose two.)
What are two possible ways to achieve this goal (Each correct answer presents a complete solution?
You are developing a Windows Communication Foundation (WCF) service that returns
location information for authorized law enforcement agencies. The service contract is as
follows. Users are authenticated and impersonated. The system uses ASP.NET roles. The
members of law enforcement are members of the LawEnforcement role. You need to
ensure that only members of the LawEnforcement role can call these methods. What are
two possible ways to achieve this goal (Each correct answer presents a complete solution?
Choose two.)
You need to implement the service to meet these requirements What should you do?
You are creating a windows Communication Foundation (WCF) service to process orders.
The data contract for the order is defined as follows: [DataContract]> public class Order {
[DataMemberl ()> public string CardHolderName { get; set; [DataMember] > public string
CreditCardNumber { get; set; } ) You have the following requirements: • Enable the
transmission of the contents of Order from the clients to the service. • Ensure that the
contents of CreditCardNumber are not sent across the network in clear text. • Ensure that
the contents of CreditCardNumber are accessible by the service to process the order. You
need to implement the service to meet these requirements What should you do?
Which two configuration settings should you add?
You are creating an ASP NET web application that hosts several Windows Communication
Foundation (WCF) services the services have ASP.NET Compatibility Mode enabled. Users
authenticate with the Web application by using a cookie-based ASR NET Forms
Authentication model. You add a service tile named Authentication. svc that contains the
following code segment <%@ SenviceHost Servicee”System Web Application Services
Authentication
Service”Factory=”System.Web.ApplicationServices.AppicationServicesHostFactory’ %>
You need to ensure that users can access the WCF services without having to
re-authenticate. Which two configuration settings should you add? (Each is part of a
complete solution. Choose two.)