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

5003Re: [soaplite] Re: Newbie question about SOAP:Lite

Expand Messages
  • Eric Bridger
    Nov 10, 2005
      You service method call getAllLearningsDesigns will return a reference
      to an array which you must dereference:
      my $ref = $ld_service->getAll....

      my @lds = @{$ref};

      Eric


      On Wed, 2005-11-02 at 22:30, fyang1024 wrote: Thanks. Now It doesn't
      report error any more.
      But the result was unexpected.

      My Perl code is like this:
      my $ld_service = SOAP::Lite->service("$serverurl"."$relativeurl");

      my @lds =
      $ld_service->getAllLearningDesigns($serverid,$datetime,$hashvalue,$username);

      print "$#lds\n";
      foreach $ld (@lds){
      print "$ld{'id'},$ld{'workspace'},$ld{'title'}:\n";
      }

      The @lds turned out to be empty, but on the server side, Java reports
      it sent out an array of 5 objects.

      I believe there's something wrong in my Perl code, since the PHP/Java
      clients I wrote both work well.

      Can anybody point it out? Many thanks.






      ________________________________________________________________________
      YAHOO! GROUPS LINKS

      1. Visit your group "soaplite" on the web.

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

      3. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
      Service.

      ________________________________________________________________________
    • Show all 6 messages in this topic