Re: Parse WSDL files
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Parse WSDL files

From: Adrian Ho <tcl@03s.net>
Date: Tue Mar 07 2006 - 17:21:59 CET

On 2006-03-07, gregchagnon@yahoo.com <gregchagnon@yahoo.com> wrote:
> I need to be able to parse a WSDL file...what are my best options for
> doing this in TCL? Thanks!

If you literally mean that you just need to extract stuff from a WSDL
file, then I think any Tcl XML package should work. Two of the most
commonly-used ones are TclDOM and tDOM -- see <http://wiki.tcl.tk/9098>
to help you decide which better fits your needs and circumstances.

However, if (as I assume) you're actually looking for something that
takes a WSDL file and creates the necessary SOAP client stubs in Tcl,
the picture's not so rosy. The only Tcl WSDL parser I know of is in
the CVS HEAD of TclSOAP <http://wiki.tcl.tk/1753>, and it's still pretty
primitive. It can digest Google's elementary WSDL, but not much else.

I recently devised an alternate approach that is rather labor-intensive
but is pretty much guaranteed to get you off the ground when TclSOAP
and its WSDL parser don't work for you. See my rather lengthy comment
(as "lexfiend) in <http://wiki.tcl.tk/1761> for details.

- Adrian
Received on Sun Apr 30 02:25:53 2006