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.

CHAPTER 4 ■ INSTALLING AND CREATING WCF SERVICES 113ramrameshreddy.blog.comFigure 4-3. Adding a reference to a WCF serviceThis menu option is a wrapper around the SvcUtil.exe utility, actually spawning aprocess with the necessary parameters. Once you’ve selected the Add Service Referenceoption, you’ll see the Add Service Reference dialog box, as shown in Figure 4-4.Figure 4-4. Add Service Reference dialog boxClick OK, and the add-in spawns SvcUtil.exe, generating (or modifying) the necessaryproxy class and the required configuration file and adding the necessary references to theproject. The project’s references will now list the required WCF assemblies—System.Runtime.Serialization and System.ServiceModel. At this point, you’re now ready to program your firstservice call into your service tier.A brief explanation of the objects added to the project is necessary. During theSvcUtil.exe (Add Service Reference) call, the utility added the following items and referencesto the project automatically. Some are only to aid the Visual Studio integration; others arerequired for using the service directly through the proxy.ramrameshreddyramrameshreddy

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

Saved successfully!

Ooh no, something went wrong!