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
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 problem
That 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.
*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