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

6229How to get errors

Expand Messages
  • Oeschey, Lars (I/ET-83, extern)
    Sep 24, 2008
    • 0 Attachment

      I have a little script that uses SOAP. I have problems with error
      handling. A little example script looks like this (working example):

      use SOAP::Lite;
      print SOAP::Lite

      when I run that, I get an error 500 from the SOAP server, which is
      expected, because it expects 3 parameters. I want to catch that error in
      my script. I used this:

      my $result=SOAP::Lite

      print "Error?: $!\n Result: $result\n";

      but I never get anything in either $! or $result. How can I access (and
      check of course) if there was an error from the SOAP server? It also
      should give an error if the SOAP server isn't available at all (i.e.
      server down)

      any help?

    • Show all 15 messages in this topic