Wrox Programmer Forums
|
BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842
This is the forum to discuss the Wrox book Professional WCF Programming: .NET Development with the Windows Communication Foundation by Scott Klein; ISBN: 9780470089842
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842 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 September 27th, 2007, 08:32 PM
Registered User
 
Join Date: Sep 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 6 : Message Contract Program Example

I think there are some errors in the program coding. First of all, the order number is displayed once the form is loaded. I notices that the coded downloaded from WROX website has assigned the order number to the textbox when the form loads.

I'm using Visual Studio 2008 Beta 2 and I've set the framework to 3.5 in the project properties for all the projects; Service, Service Host, and Service Client.

In the Service Client project, I've deleted the files from service reference folder and the app.config file. I then add the service reference again and the app.config file is auto generated. I noticed that the proxy code generated for the PlaceOrder method returns void and not BookOrder and there are 6 reference parameters to be passed to the PlaceOrder method. Wehereas in the book I noticed the statement,
   result = PlaceOrder(Val1);

The statement is not correct based on the proxy code generated. I therefore call the PlaceOrder method like the following:

   PlaceOrder(ref FirstName, ...);

There isn't any errors in the compilation. However, when I run the client program and click on the Place Order button, a runtime error occurs.

Can anyone point out to me how the problem could be solved?

Thank you.
 
Old December 5th, 2007, 03:54 AM
Registered User
 
Join Date: Dec 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi thsun,

Did you able to solve this problem? I am also facing the same. Does the author of book can help us?

-Prakash


 
Old December 5th, 2007, 08:54 AM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi Everyone,

I apologize for the late reply. I have recieved these posts and will look into them immediately. I have just finished wrappign up my third book on LINQ and have been unable to get to these, but I am now able to turn my attention to these requests.

First, let me apologize for the errors. They were definately not intentional, and I will spend this week looking at the chapter 6 examples and figure out why the issue is. I will post a fix/response as soon as I have an solution.

Again, my sincerest apologies.

Scott

========================
Scott Klein
Author of:
Professional SQL Server 2005 XML
Professional WCF Programming: .NET Development with the Windows Communication Foundation
Professional LINQ
========================
 
Old December 17th, 2007, 10:54 AM
Authorized User
 
Join Date: Dec 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am having the exact same issue. I also noticed that in the downloaded code examples that Scott has the PlaceOrder method removed. This is quite frustrating.

Scott, your response will be greatly appreciated.

 
Old December 17th, 2007, 10:59 AM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Readers, that was purely unintentional and am working right now to correct this.

========================
Scott Klein
Author of:
Professional SQL Server 2005 XML
Professional WCF Programming: .NET Development with the Windows Communication Foundation
Professional LINQ
========================
 
Old December 17th, 2007, 04:25 PM
Authorized User
 
Join Date: Dec 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Scott,

I look forward to your response. I am hesitent to continue on in the book until we get your update. God speed to you!! :-)

 
Old December 20th, 2007, 10:44 AM
Authorized User
 
Join Date: Dec 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Scott,

Any update. I would like to continue working through the book but my confidence on the future programming examples are wavering a bit.

 
Old December 20th, 2007, 10:49 AM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi jamocle,

I truly apologize for the delay. I will be working on this over the next couple of days as I have had some other contractual items I have needed to finish. These are now complete and I will be working on the WCF items over the next couple of days.

Look for a post from me by next Monday.

Scott

========================
Scott Klein
Author of:
Professional SQL Server 2005 XML
Professional WCF Programming: .NET Development with the Windows Communication Foundation
Professional LINQ
========================
 
Old December 20th, 2007, 11:26 AM
Authorized User
 
Join Date: Dec 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Great, I look forward to it.

 
Old December 20th, 2007, 10:43 PM
Registered User
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to beewolf
Default

I have same problem at this.
DataContract is corrcet,but MessageContract is not.
the next step is ...?



Beewolf!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7 Error message carlfoster BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 January 31st, 2007 02:07 PM
Tracking of Contract Dates for Employees lushh Access 2 October 16th, 2006 03:50 AM
Chapter 1: "Server Unavailable" message tcruz345 BOOK: Beginning ASP.NET 1.0 1 September 11th, 2003 02:17 AM





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