PrepAway - Latest Free Exam Questions & Answers

Which configuration setting should you use?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to expose two different service endpoints that have the same address.
Which configuration setting should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
<service name="Examservice">
<endpoint address="http://localhost:8080/service" binding="wsHttpBinding" contract="ISimpleExam"/>
<endpoint address="http://localhost:8080/service" binding="wsHttpBinding" contract="IComplexExam"/>
</service>

B.
<service name="Examservice">
<endpoint address="http://localhost:8080/service" binding="wsHttpBinding" contract="ISimpleExam"/>
<endpoint address="http://localhost:8080/service" binding="wsDualHttpBinding" contract="IComplexExam"/>
</service>

C.
<service name="Examservice">
<host>
<baseAddresses>
<add baseAddress="http://localhost:8080/service"/>
</baseAddresses>
</host>
<endpoint binding="wsHttpBinding" contract="ISimpleExam"/>
<endpoint binding="basicHttpBinding" contract="IComplexExam"/>
</service>

D.
<service name="Examservice">
<host>
<baseAddresses>
<add baseAddress="http://www.certmagic.com//localhost:8080"/>
</baseAddresses>
</host>
<endpoint address="service" binding="wsHttpBinding" contract="ISimpleExam"/>
<endpoint address="service" binding="hasicHttpBinding" contract="IComplexExam"/>
</service>


Leave a Reply