Hi,
I developed an app using a web-service to communcation with SQL.
We wanted to implement asynchronous calls to the database, particularly when
the database had retrieved the information the client was interested in.
However, while the database had retrieved the data the client was
interested, it needed to go off and do some book and housekeeping of its own
in response to this client-request
So - idea was invoke a delegate to do the tidying up, while allowing the
web-service to exit and return results to clients.
The web-service was run using an impersonated account.
When we ran the system, we got errors, boiling down to the fact that once
the web-service exited having made its asynchrnous call to the delagate, the
web-service no longer ran under the impersonated account.
Is there a 'standard' | recommended solution to the managing permissions and
accounts for the above type of scenario?
Basic code outline was (in reality more complex) .....
webservice method ()
{
doStuff();
invoke delegate <- How to
setup permissions ?
return returnObject
}
Help much appreciated (we went for synchronous database calls in the end,
and it works ok, but would be nice to solve this for future use).
Thanks