hi all, i have been trying to study web services using rails so far i succesful with server implementations in REST,SOAP,XML-RPC but the client code is troubling me. i have done most of the coding as per the rails book agile web development i.e implementations of the servers and when i invoke them they give result but when i try to acces them through another controller it gives time out error i have followed the client code given at last of that web service chapter web_service_client ActionWebService::Soap..... can anyone tell me what can be the problem thank you in advance regards gaurav v bagga -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060725/008b9145/attachment.html
On Tue, Jul 25, 2006 at 10:48:25AM +0530, gaurav bagga wrote:> i have followed the client code given at last of that web service chapter > > web_service_client > ActionWebService::Soap..... > > can anyone tell me what can be the problemThat you''re using the AWS clients? The standard Ruby-provided ones work quite well in my experience. Beyond that, you''ll need to tell *us* what the problem is before we can tell you what the problem is. - Matt
*Timeout::Error in Do#list * execution expired i get the above error when i try to access the service on controller ''do'' can anyone suggest whats wrong below is the code class MyApi < ActionWebService::API::Base api_method :find,:returns=>[:int] api_method :mov,:expects=>[:string],:returns=>[:string] end class MyController < ApplicationController wsdl_service_name ''My'' web_service_scaffold :invoke def find return 15 end def mov(nam) return "Hello #{nam}" end end class DoController < ApplicationController web_client_api :my,:soap,"http://localhost:3000/my/api" def list @p= my.find end end -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060725/5d3a6da3/attachment-0001.html