HOTSPOT
You are developing a WCF service.
The service must be interoperable with ASP.NET web service clients. In addition, it must have a time-out
of three hours.
You need to configure the service to meet the requirements.
You have the following markup:
Which markup segments should you include in Target 1, Target 2, Target 3, Target 4, Target 5, Target 6
and Target 7 to complete the markup? (To answer, select the appropriate markup segment from each
drop-down list in the answer area.)
Explanation:
bindingConfiguration and binding name could be any value as long the are the same, “timeout” would we logical because it isn’t used anywhere else.
I agree
To achieve interoperability should be used wsHttpBinding:
“Because of the WS-* support, features such as reliable messaging, transactional support, duplex communication, and much more powerful and granular security support are all readily available.”
basicHttpBinding
https://msdn.microsoft.com/en-us/library/ms731779(v=vs.110).aspx
With ‘WCF Service Configuration Editor Tool’ (from Tools menu in VS) we can configure this :
Because of ‘The service must be interoperable with ASP.NET web service clients’ we need HTTP binding!
configuration
system.serviceModel
services
service name=”Mynamespace.Orderservice”
endpoint address=”http://localhost”
binding=”basicHttpBinding”
contract=”Mynamespace.IOrderservice”
bindingConfiguration=”BasicHTTPBinding”
/endpoint
/service
/services
bindings
basicHttpBinding
binding name=”BasicHTTPBinding”
closeTimeout=”03:00:00″ /
/basicHttpBinding
/bindings
/system.serviceModel
/configuration