You need to add the endpoint for the WCF service to the…

HOTSPOT
You create the following Windows Communication Foundation (WCF) service.

The service is accessible at the URL of http://Service1/EmployeeService.svc.
You need to add the endpoint for the WCF service to the Web.config file.How should you complete the markup? To answer, select the appropriate options in the answer area.
Hot Area:

HOTSPOT
You create the following Windows Communication Foundation (WCF) service.

The service is accessible at the URL of http://Service1/EmployeeService.svc.
You need to add the endpoint for the WCF service to the Web.config file.How should you complete the markup? To answer, select the appropriate options in the answer area.
Hot Area:

Answer:

Explanation:
Box 1: address
Box 2: “http://Service1/EmployeeService.svc”
In WCF, an EndpointAddress models an endpoint reference (EPR) as defined in the WS-Addressing standard.
The address URI for most transports has four parts. For example, this URI, “http://www.fabrikam.com:322/
mathservice.svc/secureEndpoint” has the following four parts:
Scheme: http:
Machine: www.fabrikam.com
(Optional) Port: 322
Path: /mathservice.svc/secureEndpoint
Box 3:The names and namespaces of the .NET types in the definition of contracts and operations are significant
when contracts are converted into WSDL and when contract messages are created and sent. Therefore, it is
strongly recommended that service contract names and namespaces are explicitly set using the Name and
Namespace properties of all supporting contract attributes such as the ServiceContractAttribute,
OperationContractAttribute, DataContractAttribute, DataMemberAttribute, and other contract attributes.
https://docs.microsoft.com/en-us/dotnet/framework/wcf/specifying-an-endpoint-address
https://docs.microsoft.com/en-us/dotnet/framework/wcf/designing-service-contracts



Leave a Reply 0

Your email address will not be published. Required fields are marked *