exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 1 question 45 discussion

Actual exam question from Microsoft's 70-487
Question #: 45
Topic #: 1
[All 70-487 Questions]

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:

Show Suggested Answer Hide Answer
Suggested Answer:
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.
References:
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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Jobair
4 years, 8 months ago
Why there are no need to assingn the binding? why address should be assigned?
upvoted 1 times
zimzimzimma
4 years, 8 months ago
Because the address is explicitly mentioned in the question and not the binding. Of course the binding needs to be assigned as well, but that's not part of this question.
upvoted 2 times
...
Jobair
4 years, 8 months ago
Because of Simplified Configuration, it will use http binding https://docs.microsoft.com/en-us/dotnet/framework/wcf/simplified-configuration
upvoted 5 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...