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

Re: Re:

Expand Messages
  • Eric Amick
    ... I m probably missing something obvious or suggesting something you ve already tried, but what happens with this code? @services_accounts = (); for (my
    Message 1 of 5 , Jul 3, 2003
    • 0 Attachment
      > 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
    • Mark Cance
      I was sure that was the first method I tried.... But I must of had the syntax slightly wrong, tried it again using your snippet and it works :) Thanks for the
      Message 2 of 5 , Jul 4, 2003
      • 0 Attachment
        Re: [soaplite] Re: Re: <item> I was sure that was the first method I tried.... But I must of had the syntax slightly wrong, tried it again using your snippet and it works :)

        Thanks for the help!

        Best,
        Mark.


        On 3/7/03 14:12, "Eric Amick" <eric-amick@...> wrote:

        > 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



        Yahoo! Groups Sponsor
         
         
        ADVERTISEMENT
        <http://rd.yahoo.com/M=244522.3512152.4794593.1261774/D=egroupweb/S=1705701014:HM/A=1595053/R=0/SIG=1245der9k/*http://ashnin.com/clk/muryutaitakenattogyo?YH=3512152&yhad=1595053>  

        To unsubscribe from this group, send an email to:
        soaplite-unsubscribe@yahoogroups.com



        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .

      Your message has been successfully submitted and would be delivered to recipients shortly.