From: "NAKAMURA, Hiroshi" Date: 2002-09-27T14:01:50+09:00 Subject: Re: adding overload to ruby Hi, > From: Rich Kilmer [mailto:rich@infoether.com] > Sent: Friday, September 27, 2002 1:31 PM > def do_foo(b) > #used when b should respond to sort and bar > end > > def do_foo(b) > #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