W3C home > Mailing lists > Public > www-ws-arch@w3.org > April 2002

RE: Infinite Loops and webservices

From: Munter, Joel D <joel.d.munter@intel.com>
Date: Thu, 18 Apr 2002 12:26:31 -0700
Message-ID: <ABEEEAB5C59AD51186D900508BB268B907C426F2@fmsmsx102.fm.intel.com>
To: "'Fraser David'" <david_a_fraser@hotmail.com>, www-ws-arch@w3.org
Hi David,
While somewhat humorous, you raise a valid point.  Any application
programming and especially "automated" purchasing scenarios should include a
bit of common sense and in this case possibly some human intervention.  None
of what you said has invalidated the arguments for UDDI and a prudent use of
automation with web services.  I would program this such that in the event
of "complex" activity the s/w would do "purchasing research" and deliver
results for me to review prior to "closing" on the purchase.  At the same
time, I would program the same activity to work automatically if the
requested quantity could be purchased at the "best" price from a single
supplier in the first step.  Apologies if this sounds trivial.  In summary,
I would automate the "simple" and facilitate the "complex."
Joel

-----Original Message-----
From: Fraser David [mailto:david_a_fraser@hotmail.com]
Sent: Wednesday, April 17, 2002 5:57 AM
To: www-ws-arch@w3.org
Subject: Infinite Loops and webservices


I have an idiot question:
Given how loosely coupled webservices and their clients can be and the high 
degree of dynamicity(?) there can be in choosing webservices could it be 
possible that infinite loops could occur between companies?
e.g.
Company X manufactures widgits
Company Y manufactures widgits
Company Z is a retailer of widgits

Company Z runs out of widgits and through dynamically searching through a 
UDDI registry determines that Company X has the best price for widgets. 
Company X does not have enough widgets to immediately fulfill the order but 
instead informing the client of this Company X's webservice has been 
programmed to search for another widget manufacturer (Company Y) in the UDDI

registry and buy the widgets at
cost thereby keeping the business of Company Z. Company Y only has 1 widget 
left. Unfortunately its webservice has been programmed to search for the 
cheapest widget manufacturer in the UDDI registry if it does not have enough

widgets to complete a sale. As Company X has the
cheapest widgets it invokes it's webservice. This completes the loop and 
Company X and Y end up ordering 6 bazillion widgets from each other to 
fulfill Company Z's need for only a couple of widgets.

D.


_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com
Received on Thursday, 18 April 2002 15:26:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 July 2007 12:24:57 GMT