From: jm Date: 2004-07-02T10:24:52+09:00 Subject: Re: does soap have problems with structs? Figured you must have been distracted by something more important - day to day survival came to mind. The anonymous Struct was what I intented. I've rewritten it to use Hashs so don't rush to fix it. It did seem a bit of a hole in the soap implementation with Structs being recommended for some situations in ruby, hence the email. Thanks for letting me know you've seen it. J. On 02/07/2004, at 12:18 AM, NAKAMURA, Hiroshi wrote: Hi, Sorry for not responding long long time.� I'm busy these days... (after May last, the day www.ruby-lang.org cracked)�� I still cannot restore the CVS repository of soap4r.�� I was unaware of your mail. # all: please tell me if you haven't got any response from me. jm wrote: > yet if the Structs are replaced by Hashs this works. A local call works > in both cases. Is this a known problem with soap or is it something to > do with my code? > class Testsrv >�� @@test_struct = Struct.new(:one,:two) Here you're creating anonymous Struct.� Did you do it intentionally? >�� def a_method >���� @@test_struct.new("string",1) >�� end > end But you'll see the same result with �� @@test_struct = Struct.new("Foo", :one,:two) It could be a bug of soap4r.� I'll look into it. Regards, // NaHi