0

How could I call call WCF Service asychronously from asp.net Web API.

I do not want to use asyc and await keywork with my Web API function.

Is there any other way to implement same solutions.

Hiscal
  • 633
  • 2
  • 8
  • 14
  • Why don't you want to use `async` and `await`? – Stephen Cleary May 20 '13 at 14:22
  • duplicate http://stackoverflow.com/questions/13200381/asp-net-mvc-4-application-calling-remote-webapi –  May 20 '13 at 14:31
  • my application configured with .NET 4.0 so I can't use this keyword in application. also I want to generate async request from web api to web service and want to communicate wcf response to java script client through web api – Hiscal May 21 '13 at 05:42

1 Answers1

0

when you add the service reference you can enable code generation for Asyncronous operations which will give you BeginInvoke and EndInvoke methods for every method exposed via service so that u can call them asynchronously

enter image description here

CSharped
  • 1,247
  • 4
  • 20
  • 49