# ActionWeb Service not working

**URL:** <https://www.ruby-forum.com/t/actionweb-service-not-working/159205>\
**Category:** Rails\
**Created:** [February 2, 2009, 11:39am UTC](https://www.ruby-forum.com/t/actionweb-service-not-working/159205 "2009-02-02T11:39:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeba-momin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/8e7dd6/32.png) [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Post date:** [February 2, 2009, 11:39am UTC](https://www.ruby-forum.com/t/actionweb-service-not-working/159205/1 "2009-02-02T11:39:32Z")

</div>

Hi…  
I’m using Actionwebservice::Struct  
to pass complex elements to my webservice calls…  
I’ve installed the actionwebservice gem and made changes in  
environment.rb as told at  
[http://fiatdev.com/2007/05/31/making-actionwebservice-work-with-edge-rails](http://fiatdev.com/2007/05/31/making-actionwebservice-work-with-edge-rails)  
…  
But at i get an error at server startup as…  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/dependenci  
es.rb:492:in `const_missing': uninitialized constant ActionWebService::Base::Rel oadable (NameError) from c:/ruby/lib/ruby/site_ruby/1.8/action_web_service/base.rb:36 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge  
m\_original\_require’  
from  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in `re quire' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_suppo rt/dependencies.rb:509:in `require’  
from  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_suppo  
rt/dependencies.rb:354:in `new_constants_in' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_suppo rt/dependencies.rb:509:in `require’  
from c:/ruby/lib/ruby/site\_ruby/1.8/action\_web\_service.rb:39  
from  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in `ge m_original_require' ... 31 levels... from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:3 9 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge  
m\_original\_require’  
from  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in `re  
quire’  
from script/server:3

Please someone help me out of this…  
Thank you so much

---

<div class="post-metadata">

**Author:** ![zeba-momin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/8e7dd6/32.png) [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Post date:** [February 4, 2009, 10:27am UTC](https://www.ruby-forum.com/t/actionweb-service-not-working/159205/2 "2009-02-04T10:27:42Z")

</div>

Hi Jeba,

I am using Rails 2.2.2 and the actionwebservice gem.  
To manage to use this gem, I uninstall all the previous actionwebservice  
gem  
on my local machine.  
Then I download the last actionwebservice repository on the github  
[GitHub - datanoise/actionwebservice: This project is discontinued](http://github.com/datanoise/actionwebservice/tree/master) .  
Clone the repository any where on your local machine : git clone  
git://github.com/datanoise/actionwebservice.git

Then go to your new actionwebservice directory and execute the command  
ruby  
setup.rb  
This will install the gem in your site\_ruby directory. And you can now  
use  
the actionwebservice features in your Rails application.

Don’t forget to add these few lines in your environment.rb :

Rails::Initializer.run do |config|  
…  
config.load\_paths += %W(  
#{RAILS\_ROOT}/app/apis  
)  
…  
end

require ‘action\_web\_service’

I hope that my configuration of actionwebservice with Rails 2.2.2 has  
helpt  
you.

On Mon, Feb 2, 2009 at 11:39 AM, Jeba M. \<  
removed\_email\_address@domain.invalid\> wrote:

> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/dependenci  
> quire’  
> from  
> c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in `re  
> quire’  
> from script/server:3
> 
> ## Please someone help me out of this… Thank you so much
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Alex

---

<div class="post-metadata">

**Author:** ![zeba-momin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/8e7dd6/32.png) [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Post date:** [February 4, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/actionweb-service-not-working/159205/3 "2009-02-04T13:12:53Z")

</div>

Alex Le Bescond wrote:

> Hi Jeba,
> 
> I am using Rails 2.2.2 and the actionwebservice gem.  
> To manage to use this gem, I uninstall all the previous actionwebservice  
> gem  
> on my local machine.  
> Then I download the last actionwebservice repository on the github  
> [GitHub - datanoise/actionwebservice: This project is discontinued](http://github.com/datanoise/actionwebservice/tree/master) .  
> Clone the repository any where on your local machine : git clone  
> git://github.com/datanoise/actionwebservice.git
> 
> Then go to your new actionwebservice directory and execute the command  
> ruby  
> setup.rb  
> This will install the gem in your site\_ruby directory. And you can now  
> use  
> the actionwebservice features in your Rails application.
> 
> Don’t forget to add these few lines in your environment.rb :
> 
> Rails::Initializer.run do |config|  
> …  
> config.load\_paths += %W(  
> #{RAILS\_ROOT}/app/apis  
> )  
> …  
> end
> 
> require ‘action\_web\_service’
> 
> I hope that my configuration of actionwebservice with Rails 2.2.2 has  
> helpt  
> you.

Hey…  
thank you so much for your help…  
I’ll surely try this solution…  
Thanks again…
