From: Philipp Date: 2007-08-29T04:50:11+09:00 Subject: Re: transfer (own)ruby object over SOAP Hello NaHi, thanks, for you answer. I m using SOAP and WSDL right now, do u know it there is a trick, i dont want to define all the CLASSES on the client or in the WSDL API struct , is there a opotunity to (auto)generate a WSDL/CLASS config from the activerecords structur which is on the server ? i think it would be also much easier to maintain afterwards if u do any extensions to on the server side... thanks ahread Philipp On 28 Aug., 15:18, "NAKAMURA, Hiroshi" wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > If there's no need for interoperability, you should use Marshal. > > Philipp wrote: > > # on the rails app i did > > config_dump = SOAP::Marshal.dump(cars) > > > # i did the transfer as a sting over soap > > > #on client side id did > > cars_array = SOAP::Marshal.load(cars_marshal) > > > but now i have a stange SOAP::Mapping::Object on the client side, is > > there a way to get a normal ruby object in this case CAR-object that i > > can do for example > > Above should work. Please make sure you define user defined classes > (Car and Door) on the client side. Marshal requires it, too. > > Regards, > // NaHi > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (Cygwin) > > iQEVAwUBRtQgbB9L2jg5EEGlAQJNKAf+MWnLc7q/WRndeXU2CYtwZ2iR4qqzLV3g > p2uymZlxkRPFIfS5om04dr01LMkw3urrlZgkzBqwKXocjMo+Er2IIaAmRMkRZtuU > CYMi2NHoQG01sVOWVJwpm5/McC1Eb9tcJTGmck04WAjklMAqLPG1egehfO7/LFYF > /P+uGXIB9fuU4VC/unzykhsFA4upwUO/bYi0EWr8NfgCSQNDy9qzCGUTKCRGmoXc > sYIlE9XI1uvO+xFle5rHcjKEgHZdB3YW5Ue9tfvCMyfSy/F96Nc4L211A5b7AqKp > WwfNL6eWMKzogxXwLGTYQwStHUKB/MkdHReh2SIgkyTzFY9+wzhVxQ== > =6iVw > -----END PGP SIGNATURE-----