PrepAway - Latest Free Exam Questions & Answers

Which two actions should you perform?

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 metadata. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

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 10 and 11. <endpoint address=”” binding=”basicHttpBinding” contract=”IMetadataExchange” />

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

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


Leave a Reply