Displaying 20 results from an estimated 70 matches similar to: "webservice - get client ip address"
2011 Sep 07
3
Method get of ActionController::TestCase ignores routes.rb?
Hi!
I''m running into issue which seems to indicate that
ActionController::TestCase.get() method ignores what I have in routes.rb.
Happens in 3.0.10 and 3.1.0 too.
I have the following RSpec2 test of my XmlRpcController#index action:
it "should get nothing in response to GET request" do
get :index
response.response_code.should == 400 #bad_request
end
And the only line
2006 Mar 02
1
web serveces problem
Hi,
I''m trying to added layered web services to my application and from some
reason it''s not working for me. i''m working with ruby 1.84, rails 1.0.
here are my files:
1. app/apis/kate_api.rb:
class KateAPI < ActionWebService::API::Base
inflect_names false
api_method :check_version, :expects => [:string], :returns => [:string]
end
2.
2005 Feb 24
8
web services with ActionWebService
<noobalert>
Uh, yeah. So my noob self is showing through again. I''m trying to
write a simple hello-world type web service with the ActionWebService
thingy. I didn''t get very far. I''ve only done web services stuff in
.NET, so I''m not exactly used to this sort of thing.
Anyhow, I have a file, person_api.rb in my app/apis folder. I want to
take a single
2006 May 14
0
Invoke .Net WebService error in RoR
I have written a webservice:
----------- Service.cs ----------------
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld(string name)
2006 May 24
0
webservice integration test?
Hey railers,
I''m a newbie, so excuse me if the answer is obvious. We''re using a layered
dispatch model for our back-end and I''d like to run some integration tests
for things login and session authentication. The integration examples I''ve
seen, however, make get/post calls to controllers and not web services. How
would I do a sess.post w/ SOAP headers? Do I
2006 May 25
0
post to a webservice in an integration test?
Hey railers,
Just wondering if anyone out there knows how to generate a SOAP post using
the session object in an integration test. I couldn''t find documentation on
how to do so, but perhaps I''m overlooking something. I would like to call a
webservice on my server in the following block:
def login
open_session do |sess|
...
sess.post
2006 Mar 13
0
REST webservice client
Hi *,
I want to use the new MusicBrainz REST web service (http://
wiki.musicbrainz.org/XMLWebService) in my Rails application, and was
looking for suggestions as I''ve never used ActionWebService and have
little experience with web services in general.
Can someone enlighten me ? Does Rails provide facilitations for this
kind of task, or maybe Ruby module ...
TIA,
--
Nicholas
2006 Mar 28
1
What if a webservice is not available = "execution expired" error
Hi,
I''m using a webservice in my application. How can I make it so that my
application will only try to connect to the webservice for a certain
period of time and then give up?
Right now my code is using a begin-rescue-else but sometimes I get a
"execution expired" error if the webservice is not available or takes
too long to respond.
Thanks,
Peter
begin
service =
2006 Feb 06
0
Scaffold for AWS (webservice)?
Hi,
Have I missed there being any (extra) scaffold capability in
ActionWebService (AWS)? I know about web_service_scaffold placed within
a Controller class, which generates WS functionality based on the Api.
But might there somewhere be a means to get AWS generation of Api and
Controller code that automatically exposes all an ActiveRecord model
class''s CRUD member operations as
2006 Jan 04
0
Layered/Delegated WebService
Hi!
How can I access to the Controller from a Layered web service?
Cow
2010 Aug 29
0
Troll - A Rails plugin for making webservice mocking easier
Hi Folks,
Troll trumps your existing ActiveResource mocking libraries like
inbuilt HttpMock,Fakeweb or Webmock out of water. With Troll,
ActiveResource mocking just works, some of its features:
1. Don''t need to mock calls at Net::HTTP level (which webmock,fakeweb
do). Really, we don''t care what HTTP library ActiveResource uses,
fakeweb and webmock bring additional complexity
2008 Jan 24
0
ActiveResource or Ajax/XHR + REXML or similar for calling ashx webservice
Hi!
I''m making an application to display logs that are returned from an
external resource as XML.
I''d like to use ActiveResource, but from what I understand it can''t be
done out of the box,
because the WS I''m calling doesn''t conform to the URI conventions.
To log on to the service, I''ll have to call something like
2011 Sep 07
0
Ruby Webservice giving "POST not supported" error when using datanoise-actionwebservice gem
I have written SOAP web service in ruby using datanoise-actionwebservice
gem but webservice sends following error in response:
Exception of type System.InvalidOperationException: Client found
response content type of ''text/html; charset=utf-8'', but expected
''text/xml''.
The request failed with the error message:
--
POST not supported
--.
please help ...
2008 Apr 16
2
about getting webservice from other website
I have a webservice offered by a website to be integrated for my
website.They ask me to follow three steps to finish integrating.These
steps are:
1. Create an HTTP connection.
2. Send request parameters via POST method.
3. Parse XML-formatted response string.
The request parameters are something like following:
"Version=2.0.0.0" +
"&ShipmentID=1234" +
2006 Jan 31
0
webservice problem (cant make client)
hey, i have made a webservice
http://twodecode.pilot.localhost.be:3000/backend/wsdl
here i can see the wsdl file
i have a method string Authenticate(string twa, string login, string pass)
when i do /invoke i can test it, this all works
backend_api.rb
class BackendApi < ActionWebService::API::Base
api_method :authenticate,
:expects => [{:twa =>:string},{:login
2006 Jul 27
7
WebService
Hi all!
how do I make a WebService using rails?
thaks !
--
Cordialmente,
Carlos J?nior <junior@boanoitebh.com>
(31) 9244-6543
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060727/f52d1e1c/attachment.html
2006 Jan 30
3
webservice consumption over SSL
Hi, as long as nobody answered to my previous question, i''ll try to
write in another way.
I have:
webservice WSDL link (https://something?WSDL, that''s .net webservice)
pem file (certificate, needed to authentificate for gettting data)
i need :
to consume that webservice without describing API''s for each method (i
mean use WSL to construct needed structures or objects).
2006 Jul 30
1
slightly OT: opinions on best webservice implementation
We have been using more and more Ror for new applications. Right now
we are debating on the best way to implement some new webservices that
will interact with our payment gateway. These webservices will be
backend type functions. Updating customer/billing records, retrieving
data, etc.. The interface for actually processing transactions won''t
be changing.
Ideally, the webservice will
2006 Jul 24
1
XMLRPC WebService and Structs
Hi
First off, I apologise if this is covered somewhere and I just don''t
get it... I''ve looked far and wide ....
As a part of my current project I need to hook up to a particular
XMLRPC webservice that won''t be available for me to use until close
to launch date... So I am trying to recreate the webservice that
mirrors the live one so I can test my application
2006 Jan 04
5
Webservice External XMLRPC
Hello i have some trouble getting my webservice to run .
I have the following webservice :
class DirectSpoolAPI < ActionWebService::API::Base
api_method :add, :expects => [{:html=>:string},{:from=>:string}],
:returns => [Customer]
end
class DirectSpoolService < ActionWebService::Base
web_service_api DirectSpoolAPI
def add(html,from)
Customer.find(:first)
end