Displaying 20 results from an estimated 700 matches similar to: "about getting webservice from other website"
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 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 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)
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
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 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 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
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 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 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
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 ...
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 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 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
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
2010 Nov 02
0
webservice - get client ip address
Hi
I have the following problem in my application I have
in the controller:
class XmlrpcController < ApplicationController
web_service_dispatching_mode :layered
wsdl_service_name ''weblogUpdates.ping''
web_service_scaffold :invoke
web_service :weblogUpdates, WeblogUpdates.new
end
in the api definition file:
-------
class WeblogUpdatesApi <
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 Apr 17
5
XML-RPC Webservice API
Hi,
After following the excellent tutorials in the Agile Web Development
with Rails book, I was able to get my webservice working pretty much
perfectly :)
I can access it via SOAP and XML-RPC and look at service.wsdl to find
the API. What I can''t do however is get the API for the XML-RPC call. It
fails with :
Internal protocol error: NilClass is not a valid input stream. It must
2006 Jan 26
1
Webservices and submitting object with associations
Hi - is there an easy way to submit an object with its associations as
an :expects parameter to a AWS webservice?
I know I could first create a webservice method for the object, and then
call - in a loop - another webservice for each of my association
objects.
Is there an easier more elegant way, so that I don''t have to make so
many expensive webservice calls?
I was thinking