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

  • SEARCH
  • Home
  • 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 8141401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:29:42+00:00 2026-06-06T12:29:42+00:00

i have a c# wcf web service and a c# client which makes calls

  • 0

i have a c# wcf web service and a c# client which makes calls to the web service which is working fine and have a scenario like below which i am unable to figure it out how to do it.

Here is the case, i have 2 methods in c# client as the 1st method will make more time and client doesn’t know what going on as response from the wcf web service will take long time, so we implemented 2nd method which gives the status of the 1st method call(saying that the first method has a total of 10 tasks and is currently performing 1 or 2 or 3 etc). now i don’t have any idea how the call goes to the 2nd method as the first method is not yet completed and as both the methods have to be in the same client. Can any one please help with this.

  • 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-06-06T12:29:43+00:00Added an answer on June 6, 2026 at 12:29 pm

    If I have understand correctly… you need to implement asynchronous invocation.
    By default in WCF all calls are synchronous.

    What you have now is a synchronous invocation.:

    1. Method1 (Client) invokes Method2 (Server) to have tasks done.
    2. Method1 waits a long time until Method2 finishes
    3. Method1 receives a true (or whatever) from Method 2
    4. Method 1can continue doing things.

    What you need is:

    1. Method1 (Client) calls Method2 (Server)
    2. Method2

      2.1 Validate that request is correctly formed

      2.2 Creates a thread with working process

      2.3 Returns true (that means ok, I have queued your request)

      2.4 Method1 continue doing its stuff.

    Then you have two options:

    3A. When Method2 finishes it calls another method in Client to report
    that it has finished (Say Method 3 in Client)

    3B. Method1 query another method in Server (Say Method4 in Server) to see
    progress of task every x seconds and show it on screen or do whatever it wants until it is finished.

    You can check this MSDN link about how to implement asynchronous methods in WCF.

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

Sidebar

Related Questions

I have a wcf web service and I need to provide the client with
I have a Linux/c client app that connects to a WCF web service over
I have a complex RIA client that communicates with a WCF SOAP web service,
I have a WCF web service which is responsible for managing work sent from
I have a one-way WCF service, which main purpose is to get Web Page
I am implementing a WCF web service which interacts with a client whose code
Say I have a web project which uses a WCF service for behind-the-scenes processing,
I have a self-hosted WCF web service running, and an Android client application. I
I have a WCF Web Service which is referenced from a class library. After
I have a WCF web service which throws exceptions when invalid data is submitted.

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.