Questions tagged [asynchronous-wcf-call]

36 questions
8
votes
1 answer

What's the difference between [OperationContract(IsOneWay = true)] and checking the generated asynchronous operations checkbox?

What is the difference between marking a WCF method with [OperationContract(IsOneWay = true)] attribute and checking the generate asynchronous operations checkbox when adding a service reference? From what I have read, it seems the asynchronous…
Matt
  • 25,943
  • 66
  • 198
  • 303
7
votes
1 answer

Auto fill text on web service call response

I am new to ios programming, need to implement something like a google search box i.e., autofill text field. My scenario is as follow 1.when user type in text field 2.background call to webservice for data(request data= text field data). for…
6
votes
1 answer

TransactionScopeAsyncFlowOption and Isolation Level?

I'm using Entity Framework 6.1 in a WCF service and wanted to surround my SELECT query with a READ UNCOMMITTED Isolation level since other batch updates will be inserted into the table I'm reading and don't want to lock those batch updates from…
sagesky36
  • 4,542
  • 19
  • 82
  • 130
6
votes
2 answers

WCF call a function without waiting for it to finish its job?

In the client side every time I call a function from my WCF service, it waits until the function is complete at the WCF Service, like calling a local function. So I added an extra function for each one that starts the intended function in a new…
Murhaf Sousli
  • 12,622
  • 20
  • 119
  • 185
4
votes
1 answer

How to solve System.ServiceModel.ServerTooBusyException in WCF?

I'm developing a WebSite with average 50,000 visit(around 140,000 page views) in a day. I'm using WCF as my services with InstanceContextMode = InstanceContextMode.PerCall Also, I'm using async methods to call WCF services, Recently I get the…
Mohammad Dayyan
  • 21,578
  • 41
  • 164
  • 232
3
votes
1 answer

Do WCF 3.5 REST endpoints call associated methods asynchronously?

When a WCF 3.5 REST endpoint (via WebServiceHost) handles a URI request, does it invoke the associated procedure asynchronously? Thanks, Scott
Scott Davies
  • 3,665
  • 6
  • 31
  • 39
3
votes
1 answer

invoke callback during the execution of a contract operation

I am programming a WCF service on Azure. In my Service, I need to invoke callback during the execution of a contract operation. When I attempt to do that, an exception will throw and the client will locked. I think it is caused by that the channel…
Paul Zhou
  • 193
  • 2
  • 12
2
votes
1 answer

Exception during multiple asynchronous calls to WCF (The message could not be processed...)

I am getting a "The message could not be processed..." error from a WCF client. Please help, it's killing me. I have a test win app that goes through a for loop to kick of x number of asynchronous calls. Each asynchronous call instantiates its own…
Mark
  • 21
  • 1
  • 2
2
votes
0 answers

Convert Sync WCF service called from Javascript to an async

How can I make my WCF Image Upload Service asynchronous instead of synchronous. My SaveImage function is called directly from a asynchronous javascript call. The Contract (IImageWCFService.cs): [ServiceContract(Namespace = "MyServices.org")] public…
Liron Harel
  • 10,819
  • 26
  • 118
  • 217
2
votes
1 answer

Cancelling WCF calls with large data?

I'm about to implement a FileService using WCF. It should be able to upload files by providing the filecontent itself and the filename. The current ServiceContract looks like the following [ServiceContract] public interface IFileService { …
ElGaucho
  • 408
  • 2
  • 14
2
votes
0 answers

WCF: call a service method on a callback (same client) with async methods

I'm doing some WCF experiments to understand how far I can run with sessions, callbacks and TPL. One of these experiments has strange outcomes... The service is implemented with a bidirectional binding (NetTcpBinding) and the notifications are…
Gabriel
  • 21
  • 2
2
votes
1 answer

Asynchronous WCF calls are mishandled in the client

Here is the scenario. I have a WinForm application(C#, .NET 3.5) that follows the Asynchronous Event-Based design pattern. The main control(MainResultControl) creates multiple instances of child controls(ResultControl) as the user requests. Each…
myroslav
  • 1,670
  • 1
  • 19
  • 40
2
votes
4 answers

Disposing WCF with long running [OperationContract(IsOneWay = true)]

I've following service, defined as OneWay, because it's long running (a few minutes) and I can't wait when it finishes (it's used in ASP.NET application). The problem is that if I call client.Dispose() after the service call, it blocks and after…
Perun_x
  • 162
  • 2
  • 10
2
votes
1 answer

Why ChannelFactory-based client application cannot use event-driven asynchronous calling model

I found in MSDN that ChannelFactory-based client cannot use event-driven asynchronous calling model, but a ServiceModel.ClientBase-based client can How is this justified? What are the reasons for it? Here is the MSDN link…
Vivin joy
  • 97
  • 7
1
vote
1 answer

Asynchronous WCF service calls from a Windows Service

I have written a windows service that utilises asynchronous WCF service calls. Upon testing, it seems that the method on the service executes perfectly but the callback to my windows service itself isn't being handled. Upon reading the logging, I…
Frank Allenby
  • 4,332
  • 1
  • 17
  • 17
1
2 3