070-487J Free Dumps Study Materials
Question 6: 次のWindows Communication Foundation(WCF)サービスを作成します。
このサービスは、http://Service1/EmployeeService.svcのURLからアクセスできます。
WCFサービスのエンドポイントをWeb.configファイルに追加する必要があります。
どのようにマークアップを完成させるべきですか?
回答するには、回答領域で適切なオプションを選択します。
Correct 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.
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