900Re: Yet Another Serialization question
- Oct 11, 2001Thanks guys. That method seems so obvious now.
I admit, I got tired of thinking.
--- In soaplite@y..., Paul Kulchenko <paulclinger@y...> wrote:
> Hi, Chris!
> --- Chris Davies <Chris.Davies@M...> wrote:
> > I'm sure Paul will correct me, but I think you wrap the array
> > elements in a
> > SOAP::Data->name chunk, something like this:
> > 'associatedDevices' => [
> > SOAP::Data->name('device')->value('SEP222222222248'),
> > SOAP::Data->name('device')->value('SEP222222222249')
> > ]
> You're right. Side effect of this method is that 'associatedDevices'
> element will contain arrayType attribute, which is not always
> feasible. As alternative ordered_hash could be used, that allow you
> to generate any names without using arrays on wire:
> associatedDevices => SOAP::Data->type(ordered_hash => [
> device => 'SEP222222222248',
> device => 'SEP222222222249',
- << Previous post in topic Next post in topic >>