From: Vassilis Rizopoulos Date: 2008-07-21T18:39:52+09:00 Subject: Re: Implementing ruby webservice after having used wsdl2ruby Vipin Vm wrote: > Hi All, > > One of our client had created a WSDL in ASP and sent it over asking > us to implement the same structure in ruby. I created server and > client files (4 files each) using these commands > > wsdl2ruby.rb ���wsdl /home/Test.wsdl ���type server ���force wsdl2ruby.rb > ���wsdl /home/Test.wsdl ���type client ���force > > My questions are :- > > 1. how can i create WSDLs automatically like in AWS - > http://localhost:3000/test/wsdl/ ? (saw this post but not able to > make it http://www.ruby-forum.com/topic/145717#704459) > > 2. Am able to run the server app. But when am sending the request > from client its shows error like " ERROR -- Test: GET request not > allowed " (am getting this same error when i try > http://localhost:3000test/wsdl/) > > 3. Am calling my client like this driver = > SOAP::WSDLDriverFactory.new(url).create_rpc_driver result = > driver.method(arg) > > but am getting an error like this :- RuntimeError (Unexpected > response: # @is_request=false, @response_status_code=405, @body_charset=nil, > @request_query=nil, @request_method=nil, @header_item=[["Connection", > "close"], ["Date", "Sat, 19 Jul 2008 09:26:32 GMT"], ["Content-Type", > "text/html"], ["Server", "WEBrick/ 1.3.1 (Ruby/1.8.6/2008-03-03)"], > ["Content-Length", "297"], ["Allow", "POST"]], @body_type=nil, > @request_uri=nil, @body_date=nil, @http_version="1.1", > @reason_phrase="Method Not Allowed ", > The headers show you that only POST methods are allowed (the ["Allow","POST"]). From your tests and what you write I guess the RPC driver is making GET requests. You'll have to check the generated code and/or twiddle the properties when you generate your driver. Without code and without looking into the soap4r stuff I can't say much more Cheers, V.- -- http://www.braveworld.net/riva