(irb):32: warning: Object#id will be deprecated; use Object#object_id
We get this error when trying to access the 'id' field of our SOAP-mapped object. Unfortunately, changing this field to another name (which would apparently work) is not an option in our environment due to legacy reasons.
It seems that the Object definition for 'id' is overriding the SOAP-mapped definition, like a sort of reverse-inheritance.
A dump of our object is:
=> #<SOAP::Mapping::Object:0x349c21e {}attributes=nil {}category=0 {}commDetails=nil {}description="a" {}enabled=true {}estate=true {}id="10f0403f:11a0b5ad065:-7ad1:0A0F01CF" {}name="b" {}nextCallDate=nil {}parent=#<SOAP::Mapping::Object:0x3495342 {}attributes=nil {}category=0 {}commDetails="" {}description="User: Ingenico User: MacKenzie?, Colin (colin.mackenzie@ingenico.com)" {}enabled=true {}estate=true {}id="2e6b307d:11a05eecdf3:-6d5a:0A0F01CF" {}name="MacKenzie?, Colin" {}nextCallDate=nil {}parent=nil {}registrationDate=Tue, 20 May 2008 20:02:11 +0000 {}signature="admin" {}status=0 {}type="U32"> {}registrationDate=Wed, 21 May 2008 12:40:03 +0000 {}signature="d" {}status=0 {}type="U32">
We don't get this error when we remove
require 'rubygems'
gem 'soap4r'
from environment.rb, but these lines are necessary because removing them causes other (documented) errors. [This issue is referenced at http://dev.ctor.org/soap4r/ticket/460 ]
We are using SOAP4R v1.5.8, installed via 'gem install soap4r'.