Hello,
It seems that when you ''require'' soap4r, it conflicts with
Ruby''s soap
library and Rails tries to use Ruby''s soap library instead of soap4r.
Copy the folder \ruby\gems\1.8\gems\soap4r-1.5.5.20061022\lib\soap to
\ruby\lib\ruby\1.8\soap and try again. It worked for me.
Hope this helps
On 29 Ocak, 16:02, Alex Amat
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi all
>
> I have a ruby script that calls a web service which works just fine,
> However when i try to use the same code from a rails model I get the
> following error:
>
> uninitialized constant SOAP::Mapping::EncodedRegistry
>
> I have tried to load the gemsoap4rfrom both the model and the
> config/environment.rb files but i still get the same error
>
> Any ideas on what I''m doing wrong ???
>
> Thanks
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---