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 6811837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:22:36+00:00 2026-05-26T20:22:36+00:00

I am currently developing a C# Windows Form Application that I intend to let

  • 0

I am currently developing a C# Windows Form Application that I intend to let it interact with a server. The server will receive posting from a mobile application that I have developed and whenever a posting is received, my Windows Form Application should be notified and give me a notification. And for now I am starting to create a WCF service for it.

This is a sample scenario of what I meant,

E.g. My mobile application sends an message over to my server. Once my server receives the message, my windows form application should display a new notification showing the content of the message received.

so for the operationcontract of the service, what type of methods should i put in in order for me to receive the posting?

e.g.

[OperationContract]
bool receivePosting(int n);
  • 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-26T20:22:36+00:00Added an answer on May 26, 2026 at 8:22 pm

    I’m not quite clear as to which direction you want to communicate:

    • your “server” needs to notify the Winforms app of a new posting that’s been saved?

    or:

    • your Winforms app asks the “server” about new postings??

    I put “server” in quotes because in WCF world, that’s a term being used for a specific role.

    Assuming the first option, you need to do this:

    • your Winforms app needs to be the WCF server – e.g. it needs to define a service contract, operation contract and data contract – and implement those

    • your “posting server” would be the WCF client in this case; whenever a posting is received/stored, then you would call the WCF service in your Winforms app to send a notification (so really, in this setup, your roles are reserved – the Winforms app is the WCF server)

    As for the operation contract – what does your Winforms app need to know about the new posting? Just the fact a new posting has been received? The whole contents of the posting, or just parts of it??

    In any case, you need to define a method on your WCF service that the “posting server” can call and pass all relevant info to the Winforms WCF Server – you don’t want to have to make two or more calls just for one notification.

    So you Service Contract might be:

    [ServiceContract]
    public interface IPostingService 
    {
       [OperationContract]
       void NotifyAboutPosting(Posting post);
    }
    

    and your Posting class would be the data contract:

    [DataContract]
    public class Posting
    {
       [DataMember]
       public int ID { get; set; }
       [DataMember]
       public string Description { get; set; }
       [DataMember]
       public DateTime PostingTimestamp { get; set; }
    }
    

    Whatever you need to send between those two parties – define it in your data contract which is the argument to your service call

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

Sidebar

Related Questions

I am currently developing a C# Windows Form Application that I intend to let
I am currently developing a C# Windows Form Application that I intend to let
I am currently developing a C# Windows Form Application that I intend to let
I am currently developing a C# Windows Form Application that I intend to let
I am currently developing a C# Windows Form Application that I intend to let
I am currently developing a C# Windows Form Application that I intend to let
Currently I am developing a windows form application in c# that has several forms.
I am developing an application that will be running behind the scenes in Windows
I'm currently developing a application where I will have multiple windows open using C#
I am currently developing a C# Windows Form Application. Now I am trying to

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.