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

2776Re: Re:

Expand Messages
  • Eric Amick
    Jul 3, 2003
      > Thanks for the advice, the snippet you sent me and the article
      > have helped
      > loads. My only problem is that the array $service_accounts is
      > built within a
      > loop;
      >
      > for (my $i=0; $i < $NumberOfAccounts; ++$i){
      > #some account creation code
      >
      > #add Account to array
      > $services_accounts = [ SOAP::Data->name(Account =>
      > \SOAP::Data->value(
      > SOAP::Data->name(UserId =>
      > $services_userid.';'.$services_passwd),
      > )
      > )];
      > }
      > return SOAP::Data->name("AccountList")->attr({'Length' =>
      > $NumberOfAccounts})->type("xsd:ArrayOfAccounts" =>$services_accounts);

      I'm probably missing something obvious or suggesting something you've
      already tried, but what happens with this code?

      @services_accounts = ();
      for (my $i=0; $i < $NumberOfAccounts; ++$i){
      #some account creation code

      #add Account to array
      push @services_accounts, SOAP::Data->name(Account =>
      \SOAP::Data->value(
      SOAP::Data->name(UserId =>
      $services_userid.';'.$services_passwd),
      )
      );
      }
      return SOAP::Data->name("AccountList")->attr({'Length' =>
      $NumberOfAccounts})->type("xsd:ArrayOfAccounts" =>
      \@services_accounts);

      Eric Amick
      Columbia, MD
    • Show all 5 messages in this topic