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

Re: [soaplite] Help parsing soap response

Expand Messages
  • Duncan Cameron
    ... You have one too many levels of hash references. You don t want to reference createResponse as that is what SOAP::Lite returns. Try running under debug and
    Message 1 of 2 , Aug 15, 2003
    • 0 Attachment
      On 2003-08-15 19:18:00 bridg_addikt <unixrulez@...> wrote:

      >I am trying to parse the soap response that I received and having
      >trouble doing that. I am trying to extract the "code" from the
      >response below.
      >
      >$code = $res->{createResponse}->{createResult}->{error}->{code};
      >print "$code\n";
      >
      >I'm ending up with "Use of uninitialized value in print at ..."
      >What am I doing wrong?
      You have one too many levels of hash references. You don't want to reference
      createResponse as that is what SOAP::Lite returns.

      Try running under debug and dump $res

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