• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Long response web service
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Long response web service (From: Joe Moreno <email@hidden>)

  • Prev by Date: Long response web service
  • Next by Date: Re: StackOverflowError in _NSWeakMutableArray?
  • Previous by thread: Long response web service
  • Next by thread: Tip: Your next XRaid may be an SSD
  • Index(es):
    • Date
    • Thread