Design decision
by Paul Prescod other posts by this author
Nov 21 2001 1:28AM messages near this date
view in the new Beta List Site
Re: Status report
|
Re: Design decision
Let's say you want to look something up in your WSDL data structure. It
could be a port, an element, a type, etc.
My original idea is that you would do something like
$WSDL-> FindPort(...)
Gisle had the idea that you could do $WSDL-> Find("port", ...)
The benefits of my way is that it is more traditional and has better
compatibility with statically typed languages like Java.
The benefits of Gisle's is that in theory you could increase the list of
component types you could look up without changing the API. XML Schema
does have a notion of component that is not unlike Gisle's.
I think I still prefer my way because it doesn't introduce a new concept
of "component" and "component type" with an enumeration of component
types. I can't really imagine how you would extend the list of component
types and I don't know how you could use new component types in code
without knowing their semantics in advance.
Opinions?
Paul Prescod
_______________________________________________
Ws-dev mailing list
Ws-dev@[...].com
http://listserv.ActiveState.com/mailman/listinfo/ws-dev
Thread:
Paul Prescod
Cameron Laird
Paul Prescod
Chris Radcliff
Rich Salz
Paul Prescod
Paul Kulchenko
Paul Prescod
Paul Prescod
|