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

1154ordered_hash + attr problem

Expand Messages
  • sherwln
    Jan 20, 2002
    • 0 Attachment
      Hi!
      Can somebody tell me why _attr_ in my first
      SOAP::Lite code doesn't show in the soap request.

      use SOAP::Lite +trace => 'all';
      my $soap = SOAP::Lite
      -> uri('urn:My/Parameters')
      -> proxy('http://tempuri.org/mod_soap');
      print $soap->call(SOAP::Data
      ->name('m:addheader')
      ->attr({'xmlns:m' => 'urn:My/Parameters'}),

      # attr here doesn't work
      SOAP::Data->name(FileURL =>
      SOAP::Data->type(ordered_hash => [
      File => 'file1',
      File => 'file2'
      ])
      )->attr({baseurl => 'http://webserver/dload'}),

      # attr here works
      # SOAP::Data->name(FileURL =>
      # [
      # SOAP::Data->name(
      # File => 'file1'),
      # SOAP::Data->name(
      # File => 'file2')
      # ]
      # )->attr({baseurl => 'http://webserver/dload'}),
      )->result;
    • Show all 2 messages in this topic