PDA

View Full Version : webservice with long polling from ajax



noeska
21-05-2008, 05:16 PM
Getting long polling from ajax with an webservice (written in delphi.net) is more troublesome then i expected. It seems that my webservice (or the webserver for that manner) is only handling one connection at a time?

To see the effect try: http://strato.vanderhoning.net/default.htm . Once an second ie is opened things go haywire.

To disect the problem i have the following testcase:
Open http://strato.vanderhoning.net/Handler.ashx twice and then
Use http://strato.vanderhoning.net/VmsApi.asmx?page=op&tab=test&op=HelloWorldAddFeeder&bnd=TvmsApiSoap&ext=testform&name=ytestr to add a new text line.
Now only the first window updates.

Any ideas on what could be wrong are appriciated.

noeska
22-05-2008, 09:02 AM
solved:

made the handler session aware and changed the method for detecting if new text was added.

noeska
22-05-2008, 09:04 AM
new question:

What is the best method for reading out handler.ashx from delphi? I do not want to lock up the ui. E.g. once content is recieved it should read out handler.ashx once more.