What will you return to the client at the initial service invocation? I assume you’ll return some type of transaction ID that can be used in a subsequent service request to get the results of the query.
Your initial service can simply persist the request to a database table which is later polled by a scheduled job. Results of the query must be written to some other table using the transaction ID as a key. Another web service operation would be needed to allow the consumer to retrieve the results of their query using the transaction ID.
Sleeping for 15 minutes is not a good solution as it could potentially result in lots of sleeping threads.
HTH,
Mark
#API-Management#soa#webMethods