Okay, I'll lighten up, at least a little bit. First I want to say that Malte did bring up some valid points for future development, but I thought it more important to respond to certain misunderstandings, and what I thought was an attempt to provide an altered version of the TWiST API to the OpenACS community.
This last issue I take very seriously, and I don't think it is appropriate or helpful for the TWiST/tWSDL project to be forked _in any way_. But let me explain how I had planned for the re-use of tWSDL so that anyone who wishes to provide a different layer on top of tWSDL is can do so.
There is a package in tWSDL called wsapi. The wsapi-procs.tcl file has this comment:
# Linked files may not carry the same copyright as this file.
# Files linked here should present higher level APIs which:
# 1. must use the twsdl api
# 2. act as a layer above the twsdl api
# 3. provide useful defaults ...
No this isn't in any external documentation, but then again, nobody will be able to provide a higher layer without becoming very familiar with all of tWSDL.
So TWiST is _but one_ higher level API above tWSDL which uses the tWSDL API, and provides useful defaults.
If any person or organization wishes to extend tWSDL, they are free to do it, and will hopefully contribute and maintain their code so that it is available either on Google Code (in twsdl or otherwise), or somewhere else.
But please, please, do not modify the TWiST API, or extend it and offer an extended version calling it TWiST, etc.
In a number of places I also clearly identify TWiST as an _example_ use of tWSDL. Anyone wishing to develop an separate layer on top of tWSDL should follow this example. The tWSDL API must be invoked in a more or less fixed sequence, or at least a number of things must be done prior to some important step.
Another important point about TWiST, and why it must remain free from enhancements is that I use it to test and debug tWSDL. For instance, TWiST allowed me to quickly rewrite some of the tWSDL code so that it was immune from certain user errors or practices. One of these is the ability to reinvoke the same commands without messing up the web service.
Another: although it would be nice to imagine that all code will remain bug free into eternity, this doesn't seem to ever occur. Page level debugging is very difficult to perform, and usually requires insertion and eventual removal of ns_log statements. Instead of this, tWSDL and TWiST can be debugged using a Tcl shell. The AOLserver layer is so thin that it only takes a few set statements to setup the TWiST service. If an error occurs, you can immediately investigate the current state of the process (because there is only one state and you are right in the middle of it).
Also note that if available, the tWSDL will load libnsd.so so that normal ns_log statements are printed, if not, the text of the log statements are printed, minus the timestamp.
Documentation!
Malte is of course correct that the documentation could be improved, or easier to find. But there are different forms of documentation aimed at different kinds of users. The TWiST API was documented as an AOLserver module, which uses nroff files which are compiled into man and html files. I'm not sure why Malte thinks that tWSDL/TWiST is not a proper AOLserver module, but it seems to be. I don't think it is correct to provide tWSDL/TWiST as a Tcl package, since in general it requires the AOLserver API for normal usage. So this is why the primary documentation for TWiST is in provided in this form. I'm not particularly fond of nroff, but that is the current state-of-the-art with AOLserver.
Also, as Malte points out the <ws>namespace freeze command is poorly documented. He correctly discovered that you should only use it when you complete your development of the TWiST configuration file. In addition, if you don't use the freeze subcommand, you need to either wait for your connection thread to exit, or restart your AOLserver _if you are changing an existing simpleType or complexType_, either directly or via a changed <ws>proc call.
WSDL documentation. The tWSDL database (WSDB) contains internal representations of the WSDL XML file for each web service. These are child namespaces of ::wsdb::definitions. You can browse this using the inspect package. Using the ::xml::* commands, you can add to this internal representation, and it would be pretty easy to write a higher level API to insert documentation. The question is: what would the tWSDL API look like, and what about the TWiST API?
Personally, I like the documentation method used in SQL: separate commands which identify the thing to be documented, followed by the documentation. I do not like the concept of adding an additional block to the TWiST API. Here's why: you should be able to document types. Types can be reused, in fact, they can't be repeated in the WSDL file. Therefore, if you document the types, documentation shows up in one place. Operations are a higher level concept. Documentation for Operations identify why you would invoke. This is kind of like an advertisement. Until you are convinced to invoke, the exact input and output signatures are unimportant. If the documentation mixes type info with 'why to use' info, it will not be as easy to read.
Additionally, it might be useful to separate the documentation API from the decision to include the documentation in the WSDL, or elsewhere. Providing a separate switch-like API for use in the TWiST configuration file would provide a place for documentation even if this is not published.
Internal API documentation: as Malte has pointed out, it appears that I think I'm the only one working on the internal API. At the moment this is true. But there is external documentation of what the expected API for tWSDL would be. Guess what? They don't match up. The best way to explain this, or make an excuse for it, if you wish, is that there is a vast difference between what you think is going to work, and what actually ends up being a better way. I do not subscribe to the view that it is best to document things first and then stick with this regardless of new discoveries. This doesn't mean that documentation should not follow up when the code matures, but if there is no code to document, or if the code needs cleanup and reorganization, which should come first? Code which does not work does not need documentation, it need work. Code which works but is difficult to understand or of limited re-usefulness, does not need documentation, it needs work. At some point, code becomes clean and useful, which means that others will use it. This is when documentation should be produced. So at the moment, the TWiST API should be the focus of documentation, and it does have some. I will update this with the next release, which will add significant functionality to tWSDL and TWiST.
Another idea comes to mind: is there no way to provide documentation for external software and integrate it with OpenACS? That seems like a good idea, especially for those packages which provide Tcl API.