Re: Long response web service
Re: Long response web service
- Subject: Re: Long response web service
- From: Andrew Lindesay <email@hidden>
- Date: Tue, 16 Dec 2008 08:15:26 +1300
Hello Joe;
Run the web service request in a background thread and then check the
state of it using additional web services methods. Once it has
completed, add a final web service to obtain the results. Of course
polling is really inefficient so you may like to look at using a queue-
and-topic system to control the background process as well.
cheers.
What's a good way to handle a WO request, from a third party API
call (web service), that generates a long response?
For example, a web service call comes into a WO app whose response
takes 60 seconds (i.e. a large database fetch and data aggregation).
Normally, a WO long response page could handle this in the web
browser, but, this doesn't really work with a web service and if the
response time is longer than the WO adaptor timeout the request will
fail.
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden