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

Deciphering a blessed SOAP::Lite Data Structure

Expand Messages
  • drewonhoo
    Greetings, I am trying to access the data in the data structure below. I can get it to give me the value of the inode , but haven t had any luck getting at
    Message 1 of 1 , May 9, 2005
    • 0 Attachment
      Greetings,

      I am trying to access the data in the data structure below. I can
      get it to give me the value of the 'inode', but haven't had any luck
      getting at the other elements.

      This code always prints 4168:

      my $gettestresult = $result->name('getTestResult')->value();
      my $test_array = ${$gettestresult};
      my $test_record = $test_array->value();
      my $name = $test_record->name('name')->value();

      print "$name\n";

      Thanks for any help,
      Drew.

      INSTALLATION INFO
      -----------------
      SOAP::Lite 0.65 on Linux xxx 2.4.20-20.8 #1 Mon Aug 18 14:59:07 EDT
      2003 i686 i686 i386 GNU/Linux

      DATASTRUCTURE (from Data::Dumper)
      -------------
      $VAR1 = bless( {
      '_name' => 'getTestResult',
      '_signature' => [],
      '_value' => [
      \bless( {
      '_name' => 'TestRecord',
      '_type' => 'TestRecord',
      '_signature' => [],
      '_value' => [
      bless( {
      '_name' => 'inode',
      '_type' => 'int',
      '_signature' => [],
      '_value' => [
      '4168'
      ],
      '_attr' => {}
      }, 'SOAP::Data' ),
      bless( {
      '_name' => 'name',
      '_type' => 'string',
      '_signature' => [],
      '_value' => [
      'this is a test'
      ],
      '_attr' => {}
      }, 'SOAP::Data' ),
      bless( {
      '_name' => 'creation_time',
      '_type' => 'int',
      '_signature' => [],
      '_value' => [
      '1115674310'
      ],
      '_attr' => {}
      }, 'SOAP::Data' ),
      bless( {
      '_name' => 'modification_time',
      '_type' => 'int',
      '_signature' => [],
      '_value' => [
      '1115674311'
      ],
      '_attr' => {}
      }, 'SOAP::Data' )
      ],
      '_attr' => {}
      }, 'SOAP::Data' )
      ],
      '_attr' => {}
      }, 'SOAP::Data' );
    Your message has been successfully submitted and would be delivered to recipients shortly.