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

how the heck do i get at a returned object?

Expand Messages
  • Chuck
    Okay i m trying to talk to this api that returns data structurs as results. Here s my code to talk to it. $result =
    Message 1 of 1 , Dec 8, 2007
    • 0 Attachment
      Okay i'm trying to talk to this api that returns data structurs as
      results.

      Here's my code to talk to it.

      $result = $c->GetLineConfigData($id,$key,"testuser",5107960603);

      # print Dumper ($result);
      unless ($result->fault) {
      print $result->result();
      print "\n";
      print $result->paramsout();
      print "\n";
      } else {
      print join ', ',
      $result->faultcode,
      $result->faultstring;
      }
      print "\n";

      and what it prints out is

      WarningArray=ARRAY(0x8862c00)
      LineConfigData=HASH(0x885a35c)

      I need to assign these hashes and arrays to local variables so I can
      look at them. how the HECK do I do that?
    Your message has been successfully submitted and would be delivered to recipients shortly.