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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:35:25+00:00 2026-06-05T13:35:25+00:00

I have a WCF service and I am creating the client using the Add

  • 0

I have a WCF service and I am creating the client using the “Add service reference” from VS 2010.

The issue is that service is being invoked asynchronously though “Generate Asynchronous Operations” options unchecked.enter image description here

So how can I call the service Synchronously ? Where is this behavior defined (on the client or server) ? I am kind of new to WCF.Kindly enlighten

Client is a console application.

I have the “Generate asynchronous operations” unchecked.
Even then the proxy contains the following lines which indicate that the method is called Asynchronously.Dont know why 🙂

 [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="urn:COBService")]
    [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
    [System.ServiceModel.ServiceKnownTypeAttribute(typeof(MemberType))]
    void ABC(TestProject.ServiceReference1.ProcessCOBRecord request);

    [System.ServiceModel.OperationContractAttribute(IsOneWay=true, AsyncPattern=true, Action="urn:COBService")]
    System.IAsyncResult BeginABC(TestProject.ServiceReference1.ProcessCOBRecord request, System.**AsyncCallback** callback, object asyncState);

    void EndABC(System.IAsyncResult result);
  • 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-05T13:35:27+00:00Added an answer on June 5, 2026 at 1:35 pm

    Update

    It turns out the WCF service configuration was causing this asynchronous behavior, specifically the IsOneWay property of the OperationContract attribute. This is not technically asynchronous, but it “usually gives the appearance of asynchronous call”.


    You don’t have to do anything special, just invoke the normal method on the client proxy — that’s the synchronous method. So if you have a WCF method named DoSomething, then you’d just call:

    var client = new MyService.MyServiceClient();
    client.DoSomething();
    

    It’s client.DoSomethingAsync that is the asynchronous method.

    This distinction relates to the client behavior, whether or not your application blocks the thread while waiting for the WCF service to respond.

    • 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 using wsHttpBinding that I am consuming from a
I'm manually creating a WCF service that will act as a DAL and have
I'm trying to test a WCF service without creating a WCF client. I have
I have a WCF service client implemented using the asynchronous event (using /async and
I have an OData Service setup using WCF Data Services (v2) that is hosted
Well, I am creating a WCF service, that have a large number of classes
I am creating solution and inside I have three projects: A WCF Service Library
I have a WCF service that accesses a SQL database to fetch data .
I have a WCF service that I need to call in a ASP.NET web
I have a WCF service that I can debug. I put a breakpoint in

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.