Which configuration setting should you use?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to configure a single service endpoint with the following logical and physical addresses:

Logical: http://localhost:8080/internal
Physical: http://localhost:8080/examservice

Which configuration setting should you use?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to configure a single service endpoint with the following logical and physical addresses:

Logical: http://localhost:8080/internal
Physical: http://localhost:8080/examservice

Which configuration setting should you use?

A.
<service name="CalculatorService">
<endpoint address="http: //localhost:8080/internal"
listenUri="http: //localhost:8080/examservice"
binding="wsHttpBinding" contract="ISimpleExam"/>
</service>

B.
<service name="CalculatorService">
<host>
<baseAddresses>
<add baseAddress="http: //localhost:8080"/>
</baseAddresses>
</host>
<endpoint address="examservice" listenUri="internal"
binding="wsHttpBinding" contract="ISimpleExam"/>
</service>

C.
<service name="CalculatorService">
<host>
<baseAddresses>
<add baseAddress="http: //localhost:8080/examservice"/>
</baseAddresses>
</host>
<endpoint address="http: //localhost:8080/internal"
binding="wsHttpBinding" contract="ISimpleExam"/>
</service>

D.
<service name="CalculatorService">
<host>
<baseAddresses>
<add baseAddress="http: //localhost:8080/internal"/>
</baseAddresses>
</host>
<endpoint address="http: //localhost:8080/examservice"
binding="wsHttpBinding" contract="ISimpleExam"/>
</service>



Leave a Reply 0

Your email address will not be published. Required fields are marked *