You are developing a Windows Comunication Foundation (WCF) service that is used to check the status of
orders placed by customers.
The following code segment is part of your service.
(Line numbers are included for reference only.)
01 [ServiceContract]
02 public interface IStatus
03 {
04 [OperationContract]
05 int GetOrderStatus(string orderNumber);
06 }
07
08 class OrderService : IStatus
09 {
10 public int GetOrderStatus(string orderNumber)
11 {
12 ...
13 }
14 }
15
16 class Program
17 {
18 static void Main(string[] args)
19 {
20
21
22 host.Open();
23 ...
24 }
25 }
You need to ensure that the service always listens at net.pipe://SupplyChainServer/Pipe.
What should you do?
You are developing a Windows Communication Foundation (WCF) service that will be hosted in Microsoft
Internet Services (IIS) 7.0.
The service must be hosted in an IIS application named Info. You need to enable this service to be hosted
in IIS by changing the web.config file.
Witch XML segment should you add to the web.config file?
A Windows Communication Foundation (WCF) service listens for messages at net.tcp://www.contoso.com/
MyService.
It has a logical address at http://www.contoso.com/MyService. The configuration for the WCF client is as
follows:
The generated configuration does not provide enough information for the client to communicate with the
server.
You need to update the client so that it can communicate with the server. What should you do?
A client application calls a Windows Communication Foundation (WCF) service with a proxy class that was
generated by Visual Studio.
The service binding was changed from wsHttpBinding to basicHttpBinding. The method signatures in the
service contract are changed.
After these changes, the client application receives errors when calling methods on the service.
You need to ensure that the client can invoke methods on the service successfully. What should you do?