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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:09:20+00:00 2026-06-15T13:09:20+00:00

I need to call two operations from a WCF Service that we are consuming

  • 0

I need to call two operations from a WCF Service that we are consuming from a client. These two operations will be ideally called at the same time, as they both take a few seconds two complete. Once BOTH calls are complete, I’d like to continue with my work in the client. I am a bit stuck what the best model would be for implementing this. Any help or codesamples would be appreciated.

Also: Can I call the methods from the WCF Service in the same method on the client and then wait in this method for the calls to complete? (There isn’t anything else going on in the client during the wait for these two ops to return, so I could wait in the same method that starts the asynchronous calls.)

Using .NET 4.0 / VS 2010 & Visual Basic.

Thanks all!

  • 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-15T13:09:21+00:00Added an answer on June 15, 2026 at 1:09 pm

    You may want to think about where you want “control” to sit. For example, you could have the client make two calls, each of which performs one function, or you could have the client make a single call and make the two calls purely on the server.

    The guide for this will be how tightly bound you want these two operations to be. Will they always be executed together? If there’s a likelihood that you clients might sometimes just want to execute one of the operations, then it would make sense for there to be two wcf calls, just for flexibility. The client is therefore able to do almost a “pick’n’mix”.

    If you decide that the client is the appropriate place to make the two calls, Background Workers may help you.

    Either way, by the sounds of things you’re going to need to write some code that sits and waits until two things are done. An approach I have used in the past is to use system events. Check out the method WaitHandle.WaitAll to get an idea of the kind of functionality available to you. These are pretty bulletproof beasties and independent of things like wcf, the downside of then is that they do take up resources so if you’re going to end up with lots of them (several tens) you may want to rethink. But two will not be a problem.

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

Sidebar

Related Questions

I need to consume a SOAP web service from a C# .Net 4.0 client.
I need to call a method and pass an object from my custom UITableViewClass
I need to call some jQuery .load() function from flash. i Use this: import
I need to call a library function that sometimes won't terminate within a given
I need to call some PL/SQL procedures from my Java application. I can do
I need to call some methods in Wininet.dll from a Java program. I can
There is a security concept regarding the calls to the WCF service that I
I have a collection of strings which I need to perform two operations on.
I have over two hundred web pages that need a lightbox added to them.
I have two schemas, let's call them BOB and FRED. I need to call

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.