11.07.2015 Views

y - Net Developer

y - Net Developer

y - Net Developer

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

amrameshreddy.blog.com190 CHAPTER 6 ■ MANAGING WCF SERVICESramrameshreddy.blog.comYou can view and modify every element of the configuration file using this graphical userinterface. You can simply select the element you want to modify and type in the new value. Forthis example, let’s change the wsHTTPBinding setting of the client to basicHttpBinding. Therefore,select the Binding element, and change the value to basicHttpBinding for the TradeService endpoint.Save the settings using File ➤ Save. You also need to change the binding settings for theTradeServiceHost App.config file for the same endpoint information and change wsHttpBindingto basicHttpBinding. Otherwise, an error will occur because of a binding mismatch. Now openthe new configuration file, and view the changes in Visual Studio 2005. You can clearly view thechanges in Listing 6-7 performed by SvcConfigEditor.exe and compare it to Listing 6-6.Listing 6-7. WCTSimpleClient App.config File After the Service Configuration Editor ChangeThe configuration file changes are quite trivial with WCF services (refer to Chapter 3 formore details). You will also utilize SvcConfigEditor.exe in the rest of the chapter to applynumerous configuration file changes to implement message logging, tracing, performancecounters, and WMI providers. Now you’ll concentrate on adding tracing and message loggingcapabilities to a WCF service.Using Tracing and Message Logging CapabilitiesImplementing tracing and implementing message logging capabilities are similar tasks in WCF.Therefore, we will cover them together. We’ll first clarify what circumstances dictate messagelogging and then cover where you use tracing.Message LoggingramrameshreddyramrameshreddyYou can use message logging to monitor the activity of incoming and outgoing messages froma service. This will enable you to view and evaluate the message content that is received by the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!