Getting an update for WCF
I am calling a WCF service using AJAX.NET and want to know if the following is possible.
for example at the moment i have something like the following
AJAX.NET call on the page.
ITeaMaker.MakeCupOfTea(onMakeCupOfTeaSuccess, onMakeCupOfTeaError);
WCF ..
public Tea MakeCupOfTea()
{
FillKettle();
BoilKettle();
PutInTeaBag();
PourWater();
...
}
The web service makes the call and I don't get the result until everything from MakeCupOfTea has worked (or has failed), is it possible that, without requiring me to call the WCF service for each method inside MakeCupOfTea individually, I can in do my UI get a report for each stage? I am not using UpdatePanel.
i.e
Filling kettle .... Filled
Boiling kettle .... Boiled
Tea bag insert .... Done
etc...
thanks
a source to share
I've never used it myself, but you can try the WCF Duplex Service which will allow both client and server messages to be sent to each other. Hopefully this will allow you to perform the operations you are trying to accomplish.
a source to share