Hi,

> From: Rich Kilmer [mailto:rich / infoether.com] 
> Sent: Friday, September 27, 2002 1:31 PM

> def do_foo(b<sort,bar>)
>   #used when b should respond to sort and bar
> end
> 
> def do_foo(b<String>)
>   #used when b should be a type/subsclass of String
> end

In practice, Ruby's type cannot be mapped 1-1 to other
language.  You have to define Ruby's language mapping to
IDL or WSDL/XMLSchemaDatatypes and let your script know.
You should right;

  def do_foo(b<{http://www.w3.org/2001/XMLSchama}string>)
      <{http://www.w3.org/2001/XMLSchema}decimal>
    b.length
  end

Gee.

  # ARGS
  #   b {http://www.w3.org/2001/XMLSchama}string
  #
  # RETURN
  #   retVal {http://www.w3.org/2001/XMLSchema}decimal
  #
  def do_foo(b)
    b.length
  end

At any rate, ugly...  That's why I have not written
ruby2wsdl.rb.

Regards,
// NaHi