PrepAway - Latest Free Exam Questions & Answers

You need to configure the service to publish the service metadat

You are adding a Windows Communication Foundation (WCF) service to an existing
application. The application is configured as follows. (Line numbers are included for
reference only.) 01 <configuration> 02 <system.serviceModel> 03 <services> 04 <service
name=”Contoso.Sales.StockService” 05 behaviorConfiguration=”MetadataBehavior”> 06
<host> 07 <baseAddresses> 08 <add
baseAddress=”http://contoso.com:8080/StockService” /> 09 </baseAddresses> 10 </host>
11 </service> 12 </services> 13 <behaviors> 14 <serviceBehaviors> 15 <behavior
name=”MetadataBehavior”> 16 </behavior> 17 </serviceBehaviors> 18 </behaviors> You
need to configure the service to publish the service metadat

PrepAway - Latest Free Exam Questions & Answers

A.
Add the following XML segment between lines 10 and 11. <endpoint address=””
binding=”mexHttpBinding” contract=”IMetadataExchange” />

B.
Add the following XML segment between lines 15 and 16 <serviceMetadata
httpGetEnabled=”true”/>

C.
Add the following XML segment between lines 10 and 11. <endpoint address=””
binding=”basicHttpBinding” contract=”IMetadataExchange” />

D.
Add the following XML segment between lines15 and 16. <serviceDiscovery>
<announcementEndpoints> <endpoint address=””/> </announcementEndpoints>
</serviceDiscovery>


Leave a Reply