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.com112 CHAPTER 4 ■ INSTALLING AND CREATING WCF SERVICESramrameshreddy.blog.comFigure 4-2. Viewing the WCF “Hello, World” serviceThe initial difference when consuming ASP.NET web services vs. WCF services is the useof different client proxy generation tools. You’ll see that step in the following sections usingtwo different methods: Visual Studio 2005 integration and the SvcUtil.exe utility.Service Client ProxyNow that you have a service, it’s time to define a client for that service. So, add a C# consoleapplication, and place the implementation code in a separate file as part of the ASP.NET application.The following is part of the Example03 sample code.Proxy Generation: Using the Visual Studio 2005 Add-InSimilar to ASP.NET proxy creation, if you right-click the project in the IDE, you’ll see threeoptions for adding references. Select Add Service Reference, as shown in Figure 4-3.ramrameshreddyramrameshreddy

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

Saved successfully!

Ooh no, something went wrong!