Loading ...
Sorry, an error occurred while loading the content.

900Re: Yet Another Serialization question

Expand Messages
  • bill_rayburn@yahoo.com
    Oct 11, 2001
    • 0 Attachment
      Thanks guys. That method seems so obvious now.

      I admit, I got tired of thinking.

      Bill

      --- 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',
      > ])
    • Show all 5 messages in this topic