You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
Client applications that run on different platforms access the WCF service.
These applications transmit confidential data to the WCF service.
You write the following binding configuration ….
<binding name="TransportSecurity" >
<Security mode="Transport" />
</binding>
You need to configure the service for optimum interoperability and optimum Security.
Which code fragment should you use?
A.
<service name="AdventureWorks.Travel.ReservationService">
<endpoint address= "" binding="wsHttpBinding" contract="AdventureWorks.Travel.IReservationService"/>
<host>
<baseAddresses>
<add baseAddress="http://localhost:80/service/"/>
</baseAddresses>
</host>
</service>
B.
<service name="AdventureWorks.Travel.ReservationService">
<endpoint address= "" binding="basicHttpBinding" contract="AdventureWorks.Travel.IReservationService"/>
<host>
<baseAddresses>
<add baseAddress="http://localhost:80/service/"/>
</baseAddresses>
</host>
</service>
C.
<service name="AdventureWorks.Travel.ReservationService">
<endpoint address= "" binding="basicHttpBinding" bindingConfiguration="TransportSecurity" contract="AdventureWorks.Travel.IReservationService"/>
<host>
<baseAddresses>
<add baseAddress="https://localhost:443/service/"/>
</baseAddresses>
</host>
</service>
D.
<service name="AdventureWorks.Travel.ReservationService">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration="TransportSecurity" contract="AdventureWorks.Travel.IReservationService"/>
<host>
<baseAddresses>
<add baseAddress="https://localhost:443/service/"/>
</baseAddresses>
</host>