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

Re: [soaplite] Not so easy setup

Expand Messages
  • Paul Kulchenko
    Hi, Marc! ... might be something like ... Be sure that other (usual) CGI scripts can run from the same directory with the same setup. One more comment. If you
    Message 1 of 2 , Jun 12, 2001
      Hi, Marc!

      > [Tue Jun 12 08:56:29 2001] [error] (2)No such file or directory:
      > exec of /home/httpd/soap-cgi/soap.cgi failed
      > [Tue Jun 12 08:56:29 2001] [error] [client 192.168.2.6] Premature
      > end of script headers: /home/httpd/soap-cgi/soap.cgi
      One reason that I can imagine is lack of path to perl:

      > #!perl -w

      might be something like

      > #!/usr/local/bin/perl -w

      Be sure that other (usual) CGI scripts can run from the same
      directory with the same setup.

      One more comment. If you have modules with complex name (like
      My::Parameters), dispatch_to() should always point to the top
      directory. Say you have

      .../soap-cgi/My/Parameters.pm

      then use

      -> dispatch_to('/home/httpd/soap-cgi/')

      not (-> dispatch_to('/home/httpd/soap-cgi/My').

      Best wishes, Paul.

      --- Marc Ferguson <marc.ferguson@...> wrote:
      > I just installed SOAP::Lite on a RedHat 6.2 system with Perl
      > 5.005_3 installed. I used the perl -MCPAN method of installation
      > so I'm assuming the configuration is correct.
      >
      > The following server example fails:
      >
      > #!perl -w
      >
      > # -- SOAP::Lite -- soaplite.com -- Copyright (C) 2001 Paul
      > Kulchenko --
      >
      > use SOAP::Transport::HTTP;
      >
      > SOAP::Transport::HTTP::CGI
      > -> dispatch_to('/home/httpd/soap-cgi/My', 'Module::Name',
      > 'Module::method')
      > -> handle;
      >
      > If I type perl soap.cgi I get Status: 405 Method Not Allowed.
      > If I use a test script to try to invoke the server the message in
      > the Apache error log is:
      >
      > [Tue Jun 12 08:56:29 2001] [error] (2)No such file or directory:
      > exec of /home/httpd/soap-cgi/soap.cgi failed
      > [Tue Jun 12 08:56:29 2001] [error] [client 192.168.2.6] Premature
      > end of script headers: /home/httpd/soap-cgi/soap.cgi
      >
      > I think I'm missing something but I don't know what.
      >
      > Anyone have any suggestions.
      >
      > Thanks,
      >
      >
      > Marc Ferguson
      > 757-938-9365
      > 757-938-9330 (fax)
      >


      __________________________________________________
      Do You Yahoo!?
      Get personalized email addresses from Yahoo! Mail - only $35
      a year! http://personal.mail.yahoo.com/
    Your message has been successfully submitted and would be delivered to recipients shortly.