Displaying 20 results from an estimated 140 matches similar to: "Rails application Webservices"
2010 Mar 28
3
Array data type----What can Be Done
Hi all,
please i have an array in my rails application (for example; $x = [23,
how, this,56, you, nice])
I want to store it in a mysql database as a SINGLE RECORD with a
name .
thus i can get each array with its name and still be able to access
the array like an array
i.e $x[0] # => 23
$x[1] # => how
.....and so on
I don''t know what DATA TYPE to use and how to do
2008 Nov 22
2
How to add the value on the barchart
I have question: how can I put the value on the bar chart.
This my code:
barchart(Tuberize~Family|factor(Year)*factor(Hr),data=tuber)
This's my data:
Year Hr Family Tuberize
1 2007 20 A 0.26
2 2007 20 B 6.08
3 2007 20 C 0.00
4 2007 20 D 0.27
5 2008 20 A 1.18
6 2008 20 B 9.17
7 2008 20 C 0.00
8 2008 20 D 2.13
9
2007 Jun 12
1
alias_method_chain and Class methods (a Ruby question)
Hello list,
I am trying to override the post_form method of Net::HTTP so that it
does something before actually doing the post. I tried the following
in environments/development.rb
module Net
class HTTP
alias_method_chain :post_form, :intercept
def post_form_with_intercept(url, params)
# Do something before post
logger.info(''About to post at
2006 Mar 19
1
Sending post request with post_form
Basically I have a controller with this:
@lang = params[''lang''] || ''en''
@errors = request.raw_post
@feed_stats =
Net::HTTP.post_form(URI.parse("http://www.google.com/tbproxy/spell?lang="
+ @lang), @errors)
render :text => @feed_stats
However whenever I run this I get an error message:
undefined method `post_form'' for Net::HTTP:Class
2006 Jul 13
0
webservices and date time error - part 2
Hello,
When I am trying to receive an array of objects, retrieved by
ActiveRecord from table with datetime column, while using using
ActionWebServices I get the error:
ArgumentError: 3 elements of civil date are necessary
Daniel Berger, posted that this might be fixed by changing the timezone format
in the Windows registry.
2006 May 06
0
Caching webservices?
Is there any way to do this? I know that you can cache controllers
(described at
http://scottstuff.net/blog/articles/2005/10/04/rails-caches_action_with_params),
but I can''t find anything in the docs about caching web services. Thanks,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 18
2
rails and .net webservices
Hello.
I am novice in ruby.
How can i use .net webservice method from ruby.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 May 18
0
Re: WebServices and DateTime - 3 elements of civil date are
> -----Original Message-----
> From: rails-bounces@lists.rubyonrails.org
> [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of
> Chris Goodwin
> Sent: Thursday, May 18, 2006 2:24 PM
> To: rails@lists.rubyonrails.org
> Subject: [Rails] Re: WebServices and DateTime - 3 elements of
> civil date are
>
>
> Are you using Windows? I ran into the same problem.
2008 May 21
1
Testing REST webservices? (Not Rails)
Hi,
I am new to RSpec and BDD.
I was wondering if RSpec specifications are a good solution for testing
REST webservices (not implemented in Rails).
If so, what would be a good way to test something like the API described
below?
===========
GET http://localhost/workflow text/xml
Result: 200 OK
<?xml version="1.0"?>
<workflows>
2008 May 21
2
RSpec for testing REST webservices? (Not Rails)
Hi,
I am new to RSpec and BDD.
I was wondering if RSpec specifications are a good solution for testing
REST webservices (not implemented in Rails).
If so, what would be a good way to test something like the API described
below?
===========
GET http://localhost/workflow text/xml
Result: 200 OK
<?xml version="1.0"?>
<workflows>
2006 Jan 23
1
How to call C# webservices
hey,
i have created some webservices in C# with vb.net and IIS.
i can go to them with http://localhost/Twodecode.Webservices/webservices.asmx
Like:
[Webservice]
AddCity(string zip, string city)
{
...do some stuff
return "SUCCES";
}
How must i call this from ruby??
I save an object, and then call the services.
city = City.new()
if city.save
//call webservice
else
//do
2006 Jan 24
0
Calling webservices
Hey,
I found this on the web.
http://groups.google.be/group/comp.lang.ruby/browse_thread/thread/1e4015385d29fbae/1c75bbd325fffd80?lnk=st&q=ruby+Server+did+not+recognize+the+value+of+HTTP+Header+SOAPAction&rnum=1&hl=nl&utoken=1E3jSjEAAABJvF0LfsU_y2vKQdUqO05-SuWh7Qp4TDjaLpMsabUfgs6vFyhVbm91Ec8wnlUJkMJ1cPkfXpSLv0-5C4lVNC3B
''A newbie query about Soap4R and dot net web
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
2007 Aug 09
0
layered SOAP webservices
Hi all,
My SOAP web service works with direct and delegated dispatching. But
as soon as I switch to layered, I get an error message
no such web service ''api''
Now, the actionwebservice/lib/action_web_service/protocol/
soap_protocol.rb, in function
decode_action_pack_request(action_pack_request),
service_name = action_pack_request.parameters[''action'']
2006 Nov 07
0
somebody is calling my setters in the webservices!!!
a simple code to define a web service structures:
class CLL_Answer < CLL_Struct
member :answer, :bool
member :answer_description, :string
member :error, :bool
member :error_description, :string
# This is my setter
def error_description=(value)
@answer_description = nil
@error = true
@error_description = value
end
end
and now, the
2006 Nov 19
0
Can i use webservices? or do i write my own protocol?
Hey all
Ok, this is what i want to achive...
Im actually developing an hybrid workflow controller, that uses JDF and
JMF (see http://www.cip4.org/overview/overview.html#What_Is_JDF for
more) - however, i have the situation where i need to send the JMF
messages to my hardware output devices JMF portal over HTTP post and
with a specified content-length header.
Now, i know how to set headers
2007 Aug 17
1
Testing webservices in Integration Tests with Jamis Buck's recipe?
Hello,
I''m using Jamis Buck''s recipe to do integration tests on an
application, but I got a nil.recycle! error while doing a webservice
call.
This is the situation.
def test_uploading_data
invoke :upload, data
invoke :upload, even_more_data
real_user_session = new_session_as @real_user
real_user_session.press_magic_button_to_enable_more_uploads
invoke :upload,
2006 May 17
3
WebServices: execution expired
1 hour spent and I can''t got explanation why I have "execution expired"
when I trying to test this web service:
Pointed to: http://localhost:3000/news/list
class NewsService < ActionWebService::Base
web_service_api NewsApi
def list
[NewsTopic.new, NewsTopic.new]
end
end
class NewsController < ApplicationController
wsdl_service_name ''news''
2006 May 18
4
WebServices and DateTime - 3 elements of civil date are necessary
I simply trying to receive an array of objects, retrieved by
ActiveRecord from table with datetime column and I have:
test_list(SoapControllerApiTest):
ArgumentError: 3 elements of civil date are necessary
/usr/lib/ruby/1.8/date.rb:1214:in `new_with_hash''
/usr/lib/ruby/1.8/date.rb:1258:in `parse''
....
It''s a bug or I am wrong somewhere?
2014 Jul 22
3
Question: Publishing R/S objects with WebServices (SOAP/WSDL)
Hello,
Can anyone tell me if there is a package which will allow me to write a
package in R, then publish the package using WebServices? The idea is that
I want to be able to pass a data set into R, have R perform the
calculations, then send the result back to either a .Net application or a
LIMS BASIC application.
So far I see many packages that allow R to consume WebServices, but I
haven't