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

Length Required???

Expand Messages
  • Paul Rogers
    Hi, I m trying to do some work creating a web service using SOAP::Lite but I m not getting far. A call through the browser to client.pl shows a blank web
    Message 1 of 1 , Apr 11, 2008
    • 0 Attachment
      Hi,

      I'm trying to do some work creating a web service using SOAP::Lite
      but I'm not getting far. A call through the browser to 'client.pl'
      shows a blank web page. Going directly to the server.pl shows the
      error: "HTTP/1.1 411 Length Required". This is running on
      IIS6/w2k3/AP 5.8 perl.

      Any ideas on this error? Google didn't reveal all that much.

      Cheers,
      Paul ---


      # client.pl ###############################################

      use CGI;
      use SOAP::Lite;

      $wp = new CGI;
      print $wp->header;

      print SOAP::Lite
      -> uri('Demo')
      -> proxy('http://localhost/server.pl')
      -> hi()
      -> result;


      # server.pl ###############################################

      use CGI;
      use SOAP::Transport::HTTP;

      $wp = new CGI;
      print $wp->header;

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

      package Demo;

      sub hi {
      return "hello, world!";
      }
    Your message has been successfully submitted and would be delivered to recipients shortly.