NAKAMURA, Hiroshi
3/5/2006 1:30:00 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Sorry for late reply.
Giedrius wrote:
> Hi, i'm trying to generate objects for my wsdl and wsdl2ruby comes with
> error:
>
> F, [2006-01-30T15:16:20.082000 #3520] FATAL -- app: Detected an
> exception. Stopping ... undefined method `namespace' for nil:NilClass
> (NoMethodError)
>
> any solution for this?
It's the bug of soap4r. I fixed it at the subversion repository though
I'm afraid of seeing how wsdl2ruby.rb can handle .NET DataSet. Would
you please try this patch?
Regards,
// NaHi
Index: wsdl/soap/classDefCreator.rb
===================================================================
- --- wsdl/soap/classDefCreator.rb (revision 1680)
+++ wsdl/soap/classDefCreator.rb (working copy)
@@ -311,7 +311,7 @@
init_params << "#{varname} = nil"
end
# nil means @@schema_ns + varname
- - eleqname = element.name || element.ref.name
+ eleqname = element.name || element.ref
if eleqname && varname == name && eleqname.namespace ==
base_namespace
eleqname = nil
end
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
iD8DBQFECueQf6b33ts2dPkRAjTsAJ9a4d63nnq+1NhTK4fEw2tdRpsYtQCfQyRm
oUmRNpl+NcRpEf4/AD5i36I=
=2Ick
-----END PGP SIGNATURE-----