channel - Is the callback from WCF to ASP.NET possible? -


i have web service hosted in iis in different box , wcf service hosted in windows service, in different box.(n-tier approach). here, web service client wcf service. request upload file comes iis hosted web service, , iis hosted web service in return calls wcf service , actual upload. far good. after upload done wcf service performs callback (i have stored callbacks in dictionary, , have used (instancecontextmode=instancecontextmode.persession, concurrencymode=concurrencymode.multiple)). wcf service sends callback. in trace viewer, looks asp.net received callback, upload page in browser(this end user) freezes good. using chunkingchannel binding larsw.

first of all, @ possible implement above senario, john saundars mentioned in link:

what "operationcontext.current.getcallbackchannel" do?

thanks help.

not sure mean "freezes", not update or becomes unresponsive.

it may response asp page sent browser before response comes web server wcf service. in case asp page not updated when result comes service.

you have 2 options:

  • use javascript poll server changes.
  • block return of upload page untill response received service.

if endup waiting call back, simpler request response style.

another common probliem wcf proxy on client gets closed before callback received. trace show coming back, nobody listening.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -