From: Keith J. <krj...@lb...> - 2004-03-30 23:07:17
|
On Mar 30, 2004, at 12:54 PM, Christopher Blunck wrote: >> >> No, because I want to use the generator lazily, only when a SOAP >> client requests something. The SOAP server should not process data in >> advance. > > That would then imply that the SOAP connection is stateful, something > that is > generally frowned upon. The connection to the service shouldn't be stateful, but we have to deal with state. See: http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wsrf We are attempting to define standard ways of interacting with stateful resources hidden behind a stateless WS interface. > What you could do is pass state as a parameter to your > generator operation. Example: > > client: key = server.getKey() > client: token = server.generate(key) > client: doSomethingWithToken(token) > client: token = server.generate(key) > > in the server, use a global dictionary field with keys and generators. > > this of course is kind of silly, and prone to consume memory. but then > again, nobody said stateful soap was easy... There are a number of proposed standard ways to deal with this instead of explicitely passing state as an explicit param. WSRF as I mentioned above is one, WS-Context is another. --kj > ------------------------------------------------------------------------ ------------------ Keith R. Jackson, Lawrence Berkeley National Laboratory 1 Cyclotron Rd. MS: 50B-2239, Berkeley, CA 94720 tel: 510-486-4401 fax: 510-486-6363 krj...@lb... http://www-itg.lbl.gov/~kjackson/ ------------------------------------------------------------------------ ----------------- |