SOAP4R Error in Rails

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 gem soap4r from 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

Hi
Try posting your question on refwell.com You might get your answer
there

On Jan 29, 3:02 pm, Alex A. [email protected]

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