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

error "406 Not Acceptable" can't run the first example

Expand Messages
  • tl082
    Okay, I am poring over this and I don t see any typos or obvious screwups. I am getting the following error from my freshly installed SOAP::Lite module:
    Message 1 of 1 , Apr 18, 2003
    • 0 Attachment
      Okay, I am poring over this and I don't see any typos or obvious
      screwups. I am getting the following error from my freshly installed
      SOAP::Lite module:

      allan@array14 soaptest]$ perl hibye.pl
      Uncaught exception from user code:
      406 Not Acceptable at hibye.pl line 13
      SOAP::Lite::__ANON__('SOAP::Lite=HASH(0x81e660c)','\x{a}syntax
      error at line 1, column 49, byte 49 at /usr/lib/perl5...') called at
      /usr/lib/perl5/site_perl/5.8.0/SOAP/Lite.pm line 2834
      SOAP::Lite::call('SOAP::Lite=HASH(0x81e660c)','hi') called at
      /usr/lib/perl5/site_perl/5.8.0/SOAP/Lite.pm line 2802
      SOAP::Lite::__ANON__('SOAP::Lite=HASH(0x81e660c)') called at
      hibye.pl line 13

      I ran SOAP before a few years ago, no problem then. WTF?

      Thanks (details below)
      Allan

      Client (hibye.pl) source:
      =================================================================
      #!/usr/bin/perl
      # -*- mode: cperl;-*-
      # Simple perl script to demonstrate SOAP

      BEGIN { $^W = 1 }

      use strict;
      use Carp;
      use diagnostics;

      use SOAP::Lite;

      print SOAP::Lite -> uri('http://localhost/cgi-bin/Demo')
      -> proxy('http://localhost/cgi-bin/hibye.cgi')
      -> hi() -> result;
      =================================================================
      Server (hibye.cgi) source:
      =================================================================
      #!/usr/bin/perl
      # -*- mode: cperl;-*-
      # Simple perl script to demonstrate SOAP

      BEGIN { $^W = 1 }

      use strict;
      use Carp;
      use diagnostics;

      use SOAP::Transport::HTTP;

      SOAP::Transport::HTTP::CGI -> dispatch_to('Demo')
      -> handle;

      package Demo;

      sub hi {
      return "Hello from Demo package";
      }

      sub bye {
      return "Bye from Demo package";
      }
      =================================================================
      Version info:
      IO-stringy-2.108
      MIME-Lite-2.117
      MIME-tools-5.411
      MailTools-1.58
      SOAP-Lite-0.55
      This is perl, v5.8.0 built for i386-linux-thread-multi
    Your message has been successfully submitted and would be delivered to recipients shortly.