From: Wilmar Sulaiman Date: 2004-12-23T17:49:04+09:00 Subject: SOAP4R? Dear all, I tried to send "Hello World" msg via SOAP4R , the reason why I used SOAP4R is to get the XML as an output. I found that the XML is not generated the correct output. I wonder where I did wrong in my program? Sorry I am really newcomer to Ruby any references should be good, because it's really hard learning ruby since there is not much documentation available on the net. cheers, Wilmar --- TestSoap.cgi- require 'dbi' require 'soap/cgistub' class TestSOAP < SOAP::CGIStub def on_init add_method(self, 'retrieve_row') retrieve_row end def retrieve_row print 'Content-type: text/html\n\n' puts 'Hello World' end end status = TestSOAP.new('TestSOAP', nil).start -- XML output pointing to this cgi - - - Server Method 'GET' not allowed. TestSOAP - SOAP..RPC..CGIStub..CGIError - Method 'GET' not allowed. - - /usr/local/lib/ruby/1.8/soap/rpc/cgistub.rb:74:in `validate' - /usr/local/lib/ruby/1.8/soap/rpc/cgistub.rb:49:in `init' - /usr/local/lib/ruby/1.8/soap/rpc/cgistub.rb:168:in `run' /usr/local/lib/ruby/1.8/logger.rb:684:in `start' /var/www/cgi-bin/TestSoap.cgi:20 ~