search for: web_client_api

Displaying 12 results from an estimated 12 matches for "web_client_api".

2006 Mar 21
1
web_client_api within ActiveRecord
Hi, Is it possible to use web_client_api or ActionWebService::Client::Soap.new within an ActiveRecord model to access a webservice? Thanks -- Posted via http://www.ruby-forum.com/.
2006 Apr 10
2
using web service for authenitcation
....NET. But my question is, whats the simplest method using which i can use the same web service in the current Web App. I mean, not from an external application or something but from the current web apps itself. I found one method in AWDR, and was: class MyController < ApplicationController web_client_api :product, :soap, "http://my.app.com/backend/api" def list @products = product.find_all_products.map do |id| product.find_product_by_id(id) end end end but this is again like invoking the service from outside..
2006 Mar 22
14
currency conversion webservice in a rails app?
Hi, I''m interested in using a currency conversion web service in my rails app. Does anyone have a free service that they use and like? I found this one http://www.webservicex.net/WS/WSDetails.aspx?CATID=2&WSID=10 I''ve tried to make a simple, plain Ruby script to connect to this and get a conversion rate without success. How do I integrate a webservice into my rails app? I
2006 May 02
3
web services on the client side
...at the end of the chapter to set up a client, i get the following error when i open the page: Missing API definition file in apis/user_api.rb Which is the filename for my user api on the server application. I have this in my controller: class RemoteInfoController < ApplicationController web_client_api :user, :soap, "http://my_ip_address/server/backend/api" def list @users = user.find_all_users.map do |id| user.find_user_by_id(id) end end def index end end Am I supposed to have a user_api.rb file on the client application too, or have I just made a mist...
2005 Dec 25
2
SOAP Client Connections
...reat. Currently I''m trying to port an application from PHP to Rails (for purely educational reasons) and can''t seem to get past this hump. Here''s my controller definition: -------------------------------------------- class StoreController < ApplicationController web_client_api :amazon, :soap, "http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl", {:Service => ''AWSECommerceService''} def index end end -------------------------------------------- I know its bare, b...
2006 Mar 22
12
RJS page.replace(_html) problems
For some time now I try to get my code working. This Monday I switched to RJS (first with 1.0 + plugin) and yesterday to Edge Rails, so I guess I''ve been using the most recent version. I have a div with id="detail" which I want to update with a partial. If I''m using page.replace_html the content will be replaced with text, i.e. the javascript won''t become
2007 Jan 18
2
How to use API from AWS -- help!
...ewapplication - "newapplication" will be one of the many applications that must use the users web service to register and login, etc. How can I access these methods? Here''s what I''m trying (with no luck): 1) In: class SomeController < ApplicationController I have, web_client_api :user, :xmlrpc, "http://localhost:3000/user/api/RPC2", :handler_name => "user_api" And I try using things like "user_api.authenticate(un,pw)" etc. Doesn''t work, I''m currently getting: "Missing API definition file in apis/user_api.rb" b...
2006 Jul 25
2
web services client problem
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
2006 Jun 13
1
rails - web service - method name formatting problem
...ritten in Java :)) My problem is that when this goes out across http, it becomes formatted as "ExtractName" - with an uppercase ''E'' Is there an option I can pass to the Generator to control this change to the method name AWS is making? My generator looks like this: web_client_api :eewindow, :soap, "http://the.java.web.service", :namespace => "http://the.java.namespace", :driver_options => {:default_encodingstyle => SOAP::EncodingStyle::SOAPHandler::Namespace} I have tried the other de...
2006 May 14
0
Invoke .Net WebService error in RoR
...e { [WebMethod] public string HelloWorld(string name) { return "Hello, " + name; } } --------------- END of Servcie.cs -------------------- In test_api.rb: api_method :HelloWorld, :expects => [{:name => :string}], :returns => [:string] In test_controller: web_client_api :test, :soap, "http://localhost/test/Service.asmx", :namespace => "http://tempuri.org/", :soap_action_base => "http://tempuri.org", :driver_options=>{:default_encodingstyle => SOAP::EncodingStyle::ASPDotNet...
2007 Dec 13
3
Realise a web service with ruby on rails.
...ef listid(id) Customer.find(id) end def listall Customer.find(:all).map{ |customer| customer.id } end end I finished my server web_service. I realised a client I generated a controller client /app/controller/client_controller.rb class ClientController < ApplicationController web_client_api :customer, :soap, "http://localhost:3000/customer/api" def list customer.listall.map do |id| @customers = customer.listid(id) end end end But when I do http://localhost:3000/client/list my firefox search and send my mong...
2006 May 02
0
RE: Rails Digest, Vol 20, Issue 39
...the > > page: > > > > Missing API definition file in apis/user_api.rb > > > > Which is the filename for my user api on the server application. I have > > this in my controller: > > > > class RemoteInfoController < ApplicationController > > web_client_api :user, > > :soap, > > "http://my_ip_address/server/backend/api" > > > > -- > Posted via http://www.ruby-forum.com/. > > > ------------------------------ > > Message: 4 > Date: Tue, 02 May 2006 11:38:41 -0400 > From: Charlie Bowma...