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.com176 CHAPTER 5 ■ HOSTING AND CONSUMING WCF SERVICESramrameshreddy.blog.comFigure 5-19. SvcConfigEditor.exeAs you can see from the SvcConfigEditor.exe screen in Figure 5-19, you can manage atremendous amount of detailed properties through configuration. This is one of the greateststrengths of WCF—the ability to control many aspects of an implementation without impactingthe core service implementation. The concept that a service implementation doesn’t needto change in order to migrate from an HTTP-based protocol to another message-oriented oneis an example. To get more information about the features of the tool, refer to Chapter 3 of thisbook or the MSDN help.Command-Line ImplementationAn alternative method is to leverage the SvcUtil.exe utility directly instead of the Visual Studioadd-in. Again, the Visual Studio add-in calls the SvcUtil.exe, with parameters, to generate theproxy when executed directly from within Visual Studio. You can see the command line andresults of that command by viewing the Output window and setting the Show output in thedrop-down list to Service Reference.To generate manually, choose the CMD window by selecting Start ➤ All Programs ➤Microsoft Windows SDK ➤ CMD. This command prompt is useful because its path is set to thebinary directory where the SDK tools and utilities are located.You’ll use the SvcUtil.exe command-line tool to generate two outputs that could be usedin the SimpleClientWithProxy project. However, the sample code that comes with this chapterused the Add Service Reference method described in the previous section. The steps describedhere explain how to generate the same outputs as Add Service Reference. The output files itramrameshreddyramrameshreddy

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

Saved successfully!

Ooh no, something went wrong!