Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6772253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:31:41+00:00 2026-05-26T15:31:41+00:00

I am making a Prism desktop application and intend to use WCF services to

  • 0

I am making a Prism desktop application and intend to use WCF services to populate list boxes etc within views within my modules.

I have read the guide from cover to cover and have set up my solution so that I have:-

1) Shell project
2) Infrastructure Project
3) Module1
4) Module2

In Module1 I have a viewmodel that contains an ObservableCollection Customers populated by calling a WCF service directly within the view model.

I don’t feel this is correct and I want to follow the Prism best practice for referencing the WCF service. The reference implementations don’t really seem to be helping me in this regard.

My first attempt has been to create an interface IWCFCustomersAdapter in the Infrastructure project and have this forward on calls to the WCF service client. It is implemented in the Infrastructure project. The service reference is also added in to the Infrastructure project. Each module has a reference to the Infrastructure project and uses the datatypes defined in the WCF service.

What are the other / best choices in this circumstance? Could the interface still go in the Infrastructure project and the service references and implementation go in the modules? What are the pros and cons of the different choices?

Any tips and advice most appreciated.

Thanks

Alex

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:31:42+00:00Added an answer on May 26, 2026 at 3:31 pm

    The infrastructure module is only for infrastructure, i.e. types used to have the modules work together. These are mostly types used for communication, event aggregation, exception handling etc. I wouldn’t put service adapters in there. They don’t belong to infrastructure.

    From my point of view a dedicated service module is a better place. If your server provides several services you can introduce a server communication module that contains all service adapters as well as the DTOs. These DTOs can also be used as models.

    If your server provides quite a few services, you can split your service module into more specific ones, e.g. user management service module with session management, user management, rights management etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building Silverlight applicaitions using Prism and MVVM. When calling WCF services on your
What is the App.g.pas file for? I'm making an application in Delphi Prism but
Making an adobe flex ui in which data that is calculated must use proprietary
Making my first steps in RIA Services (VS2010Beta2) and i encountered this problem: created
Making a drop down list for my JSP and the values I'm entering won't
When making an HttpWebRequest within a CLR stored procedure (as per the code below),
Im making firefox extension. One function stores value in every tab, to use it
Making a search result list (like in Google) is not very hard, if you
I am interested in making a decent WPF application which will be pretty huge.
Making a piano/keyboard application and trying to figure out the best way to set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.