Wrox Programmer Forums
|
BOOK: Professional WCF 4: Windows Communication Foundation with .NET 4
This is the forum to discuss the Wrox book Professional WCF 4: Windows Communication Foundation with .NET 4 by Pablo Cibraro, Kurt Claeys, Fabio Cozzolino, Johann Grabner; ISBN: 978-0-470-56314-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional WCF 4: Windows Communication Foundation with .NET 4 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 5th, 2010, 05:17 PM
Registered User
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 2

In Listing 2-6, Creating the client. Can anyone explain how they created the CarRentalProxy? It shows the code for the contract and service but then jumps to the client...

About the proxy the chapter says, "The metadata can be used to generate the necessary client code. For this purpose use svcutil.exe or Add Service Reference from within Visual Studio..."

I thought you needed to host the service first before trying to create a reference/proxy, but for this example - it's not truly explained or I'm missing something.

FYI, I am a newbie to WCF and probably should have bought a beginner book but it is what it is and I have to somehow keep pushing forward.

Thanks for any help in advanced.
 
Old August 7th, 2010, 12:22 PM
Registered User
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi winstonsalem,

you need to host your service before create the client. When you host your service, as explained in chapter 14, you can generate the client proxy by using the exposed wsdl.

HTH





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 - Code Download Missing for this Chapter dbaechtel BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 0 August 11th, 2009 11:02 AM
Chapter 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.