From: Jonathon P. <jon...@gm...> - 2010-10-07 21:10:59
|
> From: Alex Peeters <alex.peeters@ci...> - 2010-09-02 07:04 > Data structure totally difference between v0.69 and later versions. > > SOAP::Lite v0.69 > $VAR1 = { > 'getByCompanyIdResponse' => { > 'result' => bless( { snipped }, 'Data30bisPortail' ) > } > }; > > SOAP::Lite v0.72 > $VAR1 = \bless( { snipped }, > 'SOAP::Data' ), I'm having to maintain code which is breaking on upgrading from 0.69 -> 0.71, and seeing the same behaviour, specifically when calling ->value() on SOAP::Data objects. In v0.69, code like this works: $element = $envelope->dataof('[0]'); ## $envelope is a SOAP::SOM object. $something = $element->value->{'key'} ## ->value() returns a hashref. However in 0.712, SOAP::Data->value() is returning a SOAP::Data object, within which there is are SOAP::Data objects for each sub-element, where before it used to return a hashref. Is there any particular way to call value, or set a parameter to have SOAP::Lite revert to it's previous behaviour? Regards, Jonathon Padfield |