From: Wes Shaddix Date: 2005-10-29T00:30:08+09:00 Subject: Re: Soap::RPC::Driver Question What is iconv and uconv? Also $KCODE = 'UTF8' before creating the soap client didn't change the encoding to UTF-8, it is still us-ascii Also, more importantly, how can I change the namespaces that ruby uses to define the soap envelope and body? I need it to change the namespace name from 'env' to 'soap' Thanks so much for helping out. I'm getting really close to getting this to work which will allow me to introduce ruby as a viable language for our company. -----Original Message----- From: NAKAMURA, Hiroshi [mailto:nakahiro@sarion.co.jp] Sent: Thursday, October 27, 2005 8:41 PM To: ruby-talk ML Subject: Re: Soap::RPC::Driver Question -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Wes Shaddix wrote: > How do you make the soap client send utf-8 encoded instead of ascii encoded > requests? Set $KCODE = 'UTF8' if you don't have iconv or uconv been installed. Soap4r should detect iconv and uconv and use utf-8 by itself. i.e. $KCODE = 'UTF8' drv = ... or ruby -Ku myclient.rb > How do you keep the request serialization from including the data type of > each element? Please set Driver#generate_explicit_type = false. i.e. drv = SOAP::RPC::Driver.new(...) drv.add_method('my_method', ...) drv.generate_explicit_type = false drv.my_method(...) Regards, // NaHi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) iD8DBQFDYXN5f6b33ts2dPkRApKxAKDAV0ZOIgb08lXsBYdYB9r6rfzKLwCfcM66 i0f7rTV9iZwGq3rzTFuNkWY= =gLgO -----END PGP SIGNATURE-----