Displaying 20 results from an estimated 600 matches similar to: "SOAP responses blowing up memory usage"
2006 Jun 07
1
Web Service: NoMethodError (missing attribute: featured) !?!?!?!?!
Hi all -
I have a Player model. The database looks like this:
+-------------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| fname |
2006 Apr 26
0
Re: gSOAP and ActionWebService interop problems
I am experiencing a similar problem, not with gSOAP, but with
Apache''s SOAP library. Just like Guido, XML-RPC works perfectly, but
the SOAP request processing fails during protocol discovery. Rail''s
SOAP client also works perfectly, so I''m fairly certain the error is
not in my code.
I am new to both ActionWebService and the Ruby XMLRPC module, so I''m
2006 Jan 07
1
AWS, SOAP, and Exceptions
Can someone shed some light on how to convert an Exception to a
SOAPFault on Rails 1.0/AWS 1.0? I''ve been digging through the source
code and see that in soap_protocol.rb there is a method called
encode_response() that seems to perform the translation of an Exception
to a SOAPFault. However, if I use the following code block within my Web
Service controller:
def
2006 Jul 31
5
ActionWebService API
Hi *,
I need to pass a hash to a webservice, so I defined my API with:
api_method :search,
:expects => [{
:tags => :string,
:assignment => :string,
:resource => :string,
:lesson_plan => :string,
:subject => :string,
:all_types => :string
}], :returns => [[Resource]]
when I try to test the webservice with scaffold the
2006 Jun 23
0
SOAP Web Service Exception
I am working on building a prototype for a Rails Web Service that will
be used potentially by non-ruby/rails languages. When testing using the
*invoke* scaffold I have no problem getting the correct result, however
when using a 3rd party PHP client I get a *NoMethodError (undefined
method `collect'' for #<SOAP::SOAPNil:0x24ea1bc>):* exception from the
rails Webrick web server.
2007 Nov 27
1
Plugin - How to access object from instance method
Quick question: Given a basic plugin... how can I access an object that
I instantiated in the acts_as method from an instance method? Probably
some sort of accessor... but where?
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
def acts_as_test
object = Object.new ## This object needs to be accessible from the
Instance Methods
end
include
2006 Jun 21
1
Plugin Panic! - no accessing a model''s class methods?
Hi plugin-authors.
So this is a little bit of take two on this question, but why can''t I
access a singleton on the model calling my plugin? The crux of the full
plugin below is:
#logger.info self.class.to_s
new_copy = self.class.new( @copyable_attributes )
the logger spits out "Datatype", but I get an error from rails saying:
undefined method `datatype'' for
2006 Sep 04
2
"include" versus "extend" - what's the difference
Hi,
Just wondering when one would use "include" over "extend"? Both seem to
bring in methods to the class no?
The context is I''m just trying to understand why both are used with the
acts_as_audited plugin:
Full extract from plugin (used within here):
==================================================
# Copyright (c) 2006 Brandon Keepers
#
# Permission is hereby
2006 Sep 19
1
Callback sto InstanceMethods in a plugin
Hello there,
I''m currently building a plugin, for which I need a before_save
callback. The method I want to call is in module InstanceMethods, but
when I add a before_save foo, foo, as defined as an InstanceMethod,
never gets called.
This is the first plugin I''m building, after only two weeks of fiddling
with Ruby and Rails, so if anyone is kind enough to help me out.... :)
2005 Mar 08
2
ActionWebService SOAP Faults aren''t schema valid
I''m working with an ActionWebService client
talking to an ActionWebService server through one of
DataPower''s XS40 XML Security Gateways. One of the
intrinsic functions of this gateway is automatic
SOAP schema validation.
When testing some failure cases, I noticed that SOAP
Faults returned by ActionWebService aren''t schema valid
to the SOAP 1.1 schema, specifically:
2006 Jun 26
5
How can I dynamiclly generate models?
I am trying to write a plugin, ''acts_as_commentable'', for my models -
Image, Book, Music and so on, I do not want to use polymorphic
association, so very model should have its own comment class.
Here is my code
acts_as_commentable.rb
module Commentable
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def
2012 Jan 23
0
Problem loading modules through ActiveSupport on_load
Working with modules to group certain methods. Currently I have this
set up and it works:
**# app/models/a.rb**
class A
has_history
end
**# lib/history.rb**
module History
module Model
def self.included(base)
base.send :extend, ClassMethods
end
module ClassMethods
def has_history(options = {})
send :include,
2006 May 11
1
acts_as_paranoid and nested scopes in Rails 1.1
I have a real problem with the acts_as_paranoid plugin. The find-scope
nesting does not seem to work at all.
The description:
I made a copy of ''acts_as_paranoid'' in the plugin directory, renamed it
to ''acts_as_very_new''(just nonsense plugin for testing), and just
simplified the code:
#--------------------------------------------------------------
module
2006 May 11
0
acts_as_paranoid, aliasing and nested scopes in Rails 1.1
I have a real problem with the acts_as_paranoid plugin. The aliasing of
find and so the nested scope does not seem to work at all, when
combining it with similar plugins.
The description:
I made a copy of ''acts_as_paranoid'' in the plugin directory, renamed it
to ''acts_as_very_new''(just a nonsense plugin for testing), and
simplified the code (original code
2006 Mar 28
0
How to set session variable in plug-ins
I''m working on a plug-in which has to manipulate some session varibles
Unfortunately I end up with "Symbol as array index" errors.
Probably the error occurs in a point that I never think about but here''s
an abstract plug-in which generates the same error.
It fails in the line of assignment "session[:aaa_uid] = uid" with
"Symbol as array index"
2009 Sep 11
0
Need help with extending a plugin
hey folks
I''ve installed the plugin acts_as_taggable_on_steroids (henceforth
aatos), and i already have some tagging functionality set up, using the
same approach (ie a Tag and a Tagging class with associated tables) as
aatos.
So, i want my existing Tag and Taggings methods, plus some other methods
i have in a module which i include with the taggable classes (ie the
ones that would call
2007 Aug 30
1
alias_method_chain stack level too deep in Rake test only
I have an odd error. I have the following module:
module ActionController
module SslSupport
def self.included(base)
raise "#{base} does not define url_for" unless
base.method_defined?(:url_for)
unless base.respond_to?(:url_for_without_ssl_supprt)
base.send :include, InstanceMethods
base.send :alias_method_chain, :url_for, :ssl_support
end
2012 Jan 28
2
after_save in plugin
Dear list,
I am trying to override an after_save callback declared in main app
using plugin.
The main model class is:
class WorkHours < ActiveRecord::Base
@after_save_call_back_called=0
after_save :after_save_call_back
def after_save_call_back
logger.debug "after save called"
@after_save_call_back_called=1
end
end
And in my plugin (in the lib directory) :
module
2011 Jul 11
2
Can't get this Rspec test to pass
Hello,
I''m completely new to Rspec testing and I''m finding it very difficult to
mock specific objects.
In this test, I have a before block setup as such:
[code]
before do
setup_controller_for_warden
controller.session[:operation_id] = 1
@operator = Factory :operator
sign_in :operator, @operator
@persist_herd = Herd.new
2008 Jun 12
1
Which "get" is being used in Controller spec
Hi,
I''m a bit puzzled with "get" in controller specs. When I write,
it "should render index template" do
get :index
response.should render_template(:index)
end
Which "get" method is being used? I checked RDoc of RSpec and RSpec on
Rails, but didn''t find "get".
In Rails RDoc, I found the following "get"s.
get