PrepAway - Latest Free Exam Questions & Answers

Which definition should you add?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following XML code fragment.

<service name="Contoso.Exams.Examservice" BehaviorConfiguration="ExamServiceBehavior">
<host>
<baseAddresses>
<add baseAddress="http://localhost:8000/serviceModelExam/service"/>
</baseAddresses>
</host>
</service>

You need to add an endpoint definition to the service configuration for the URL
http://localhost:8000/serviceModelExam/service to expose the Contoso.Exams.IExam service contract
Which definition should you add?

PrepAway - Latest Free Exam Questions & Answers

A.
<endpoint address= "" binding="wsHttpBinding"contract="Contoso.Exams.IExam"/>

B.
<endpoint address="/service" binding="wsHttpBinding" contract="Contoso.Exams.IExam" />

C.
<endpoint address="/service" binding="basicHttpBinding" contract="Contoso.Exams.IExam" />

D.
<endpoint address="http://localhost:8000/serviceModelExam/service" binding="basicHttpBinding" contract="IExam" />


Leave a Reply