Index: [Article Count Order] [Thread]

Date:  Sun, 10 Feb 2002 09:44:05 +1300
From:  Holden Glova <dsafari@xtra.co.nz>
Subject:  [webricken:3] SOAPlets
To:  webricken@notwork.org
Message-Id:  <20020209203956.FJHR15929.mta1-rme.xtra.co.nz@there>
X-Mail-Count: 00003

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm very interested in the SOAPlet functionality except the newest version of 
the SOAPlet I could find from the website doesn't seem to work out of the box 
with WEBrick 1.4.2. Here is my following error when I the client.

synack@eugene:~/downloads/soap4r-1_4_2/sample/webrick$ ruby exchangeClient.rb
/usr/local/lib/site_ruby/1.6/soap/proxy.rb:112:in `call': Illegal 
content-type: text/html (SOAP::StreamError)
        from /usr/local/lib/site_ruby/1.6/soap/driver.rb:129:in `call'
        from (eval):2:in `getRate'
        from exchangeClient.rb:12

Here is what WEBrick shows me.
[2002-02-10 00:34:00] ERROR NameError: undefined method `has_key?' for 
[]:Array
        ./soaplet.rb:17:in `get_instance'
        /usr/local/lib/site_ruby/1.6/webrick/httpserver.rb:73:in `service'
        /usr/local/lib/site_ruby/1.6/webrick/httpserver.rb:39:in `run'
        /usr/local/lib/site_ruby/1.6/webrick/server.rb:95:in `start'
        /usr/local/lib/site_ruby/1.6/webrick/server.rb:88:in `loop'
        /usr/local/lib/site_ruby/1.6/webrick/server.rb:88:in `start'
        /usr/local/lib/site_ruby/1.6/webrick/server.rb:85:in `start'
        /usr/local/lib/site_ruby/1.6/webrick/server.rb:85:in `start'
        /usr/local/lib/site_ruby/1.6/webrick/server.rb:84:in `times'
        /usr/local/lib/site_ruby/1.6/webrick/server.rb:84:in `start'
        /usr/local/lib/site_ruby/1.6/webrick/server.rb:77:in `start'
        /usr/local/lib/site_ruby/1.6/webrick/server.rb:77:in `start'
        httpd.rb:28

Have I errored in my setup?

Also, I was wondering if I could have an example of how you make the server 
return some sort of object back to the client. I'm guessing it is to do with 
the mappingRegistry, but that is only a guess from me :)  I'm quite new to 
soap but i've done some reading last night on the subject and it looks like 
they use some sort of descriptor to define the attributes of the class, but 
i'm not really sure if this is required due to dynamic nature of Ruby.

Any help is greatly appreciated - many thanks in advance.

- -- 
Signed,
Holden Glova
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8ZYoW+mF116Lw2cQRAkx2AJ9wqQTnUb11lqLyJw4Eb9yftKXl3gCghIwQ
4RxAfeBHvLMso9+k2An2RuA=
=AtnL
-----END PGP SIGNATURE-----