Wrox Programmer Forums
BOOK: Real World .NET, C#, and Silverlight: Indispensible Experiences from 15 MVPs
This is the forum to discuss the Wrox book Real World .NET, C#, and Silverlight: Indispensible Experiences from 15 MVPs by Bill Evjen, Dominick Baier, György Balássy, Gill Gleeren, David Giard, Alex Golesh, Kevin Grossnicklaus, Caleb Jenkins, Jeffrey Juday, Vishwas Lele, Jeremy Likness, Scott Millett, Christian Nagel, Daron Yondem, Christian Weyer; ISBN: 978-1-1180-2196-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Real World .NET, C#, and Silverlight: Indispensible Experiences from 15 MVPs 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 January 22nd, 2012, 11:18 AM
Registered User
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Consume WCF services in MVVM

Dear All,

I have went through the book [Read Word .net c# and Siverlight 15 mvps].
The book was really superb, i have implemented a mvvm pattern and i am trying to consume wcf services in view model usin below code

private readonly ICustomerServiceAgent customerServiceAgent;

private string status;

private ObservableCollection<Customer> customers;

public HelloWorldViewModel(ICustomerServiceAgent serviceAgent)
this.customerServiceAgent = serviceAgent;
this.LoadCustomersCommand = new DelegateCommand(this.LoadCustomers, this.CanLoadCustomers);
this.status = "Ready";
Resolution of the dependency failed type= viewmodel= none.........
ICustomerServiceAgent interface connot be constructed

Please suggest how to solve error and consume wcf service in mvvm sample code.......chapter 7 mvvm framework

Last edited by Hambeere; January 23rd, 2012 at 04:57 AM.. Reason: add chapter name

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Domain WCF Data Services & jQuery R4VEN ASP.NET 4 General Discussion 0 November 29th, 2011 02:11 AM
Good Books for Beginners using WCF Services dotnetDeveloper Windows Communication Foundation 1 February 12th, 2009 12:01 AM
consume a webservice mj1223 Classic ASP XML 2 July 9th, 2008 04:21 PM
WCF endpoint error when wrapping WCF service with jdawg1979 Visual Studio 2008 0 July 8th, 2008 11:56 AM
How to consume a web service jlwilliamson .NET Web Services 7 November 14th, 2006 11:08 AM

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