From: "NAKAMURA, Hiroshi" Date: 2006-07-13T19:39:56+09:00 Subject: Re: SOAP WSDL Question (ignored element) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Jim wrote: > wsdl_driver = SOAP::WSDLDriverFactory.new("http://someurl/blah.asmx?WSDL") > > I get the following warnings on stderr... > > ignored element: {http://schemas.xmlsoap.org/wsdl/soap12/}binding > ignored element: {http://schemas.xmlsoap.org/wsdl/soap12/}operation > ignored element: {http://schemas.xmlsoap.org/wsdl/soap12/}body > ignored element: {http://schemas.xmlsoap.org/wsdl/soap12/}address > > I'm pretty new too Ruby so sorry if this is a daft question but how do I > supress those messages? (aside from wrapping the whole thing in bash and > redirecting stderr! :-) Those messages are dumped with 'warn' method. You can change $VERBOSE to control it. def suppress_warning back = $VERBOSE $VERBOSE = nil begin yield ensure $VERBOSE = back end end wsdl_driver = suppress_warning { SOAP::WSDLDriverFactory.new("http://someurl/blah.asmx?WSDL") } Regards, // NaHi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) iQEVAwUBRLYi6h9L2jg5EEGlAQIh9Qf/QcTFX6hWGll04l+HcrT5+sh1VWODbJPt 8iWmjsMjr3ypeTnehve8265XQAbnXXHC86yNlH6LkoKkOL0AyNAF9a4Oi8xHgG5L 5n50HAGQCQ1OrzTnxjrCB46apjQkmy9GwVYow/Z/yQT2/igpxc4/HtF+MATAJJJJ SPmH90Fj+CrZTqM3bzNGsvbAkLfIomgNRQE97BmEL7QPsl5GBg/H+cqzmUflQSXr O8fcOlSp24rHoFBgsrYpXdcpeUIuCQ39Ri/WXP7WmhfPIlhPAVr8/tFcme2NIZ9v QnmUnd7nnMnFqce1er2zjydm66ux/VnWy2Vrql35ox7jSDrHvzdVyw== =zhWi -----END PGP SIGNATURE-----