Click here to Skip to main content
12,455,701 members (60,593 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# .NET WCF .NET4
//Call to the Service

client1.BeginProcessRecords(SessionId, new AsyncCallback(Class.TransactionalDataCallback), client1);
 
//Call Back

if (result.AsyncState != null)
                {
                    client1 = (SendRawDataServiceReference.ProcessRecordsServiceClient)result.AsyncState;
                    intProcessedRecCount = intProcessedRecCount + 1;
                    client1.EndProcessRecords(result);
                }
Hi All,

I am having a exe program that will invoke a wcf service asynchronously. But when i try to invoke the service from the exe, the service is not getting invoked always and it is not throwing any exception.

While adding the service reference, i have checked the check box to Generate Asynchronous methods

I am not able to figure out what is the issue.

Any hepl is appreciated
Posted 9-Jul-12 3:27am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

How to Call WCF Services Synchronously and Asynchronously[^]

I think It will solve your problem...
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 9 Jul 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100