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

Re: [soaplite] Re: 500 Internal Server Error at hibye.pl line 3

Expand Messages
  • Paul Kulchenko
    Hi, JP! Debug info or fault string would be helpful. To switch debug on and see wiredump: use SOAP::Lite +trace = debug ; To print fault: my $resp =
    Message 1 of 8 , Dec 18, 2001
      Hi, JP!

      Debug info or fault string would be helpful.

      To switch debug on and see wiredump:

      use SOAP::Lite +trace => 'debug';

      To print fault:

      my $resp = SOAP::Lite
      -> uri('http://66.75.7.241/Demo')
      -> proxy('http://66.75.7.241/cgi-bin/hibye.cgi')
      -> hi();
      die $resp->faultstring if $resp->fault;
      print $resp->result;

      To call using SOAPsh.pl:

      perl SOAPsh.pl http://66.75.7.241/cgi-bin/hibye.cgi Demo hi

      Best wishes, Paul.

      --- jpdurrios <jpdurrios@...> wrote:
      > I made a typo in my previous email, but I still get the same Error:
      >
      > 500 Internal Server Error at hibye.pl line 3
      >
      > Source (corrected):
      > ------
      >
      > #!perl -w
      > use SOAP::Lite;
      > print SOAP::Lite
      > -> uri('http://66.75.7.241/Demo')
      > -> proxy('http://66.75.7.241/cgi-bin/hibye.cgi')
      > -> hi()
      > -> result;
      >
      > Thx
      >
      > JP
      >
      >
      >
      > --- In soaplite@y..., "jpdurrios" <jpdurrios@y...> wrote:
      > > Hi,
      > >
      > > I get: 500 Internal Server Error at hibye.pl line 3
      > >
      > > I put hibye.cgi in my /cgi-bin directory an I just modified the
      > > hibye.pl client as posted at: http://guide.soaplite.com/hibye.pl_
      > >
      > > From
      > > ----
      > >
      > > #!perl -w
      > > use SOAP::Lite;
      > > print SOAP::Lite
      > > -> uri('http://www.soaplite.com/Demo')
      > > -> proxy('http://services.soaplite.com/hibye.cgi')
      > > -> hi()
      > > -> result;
      > >
      > >
      > > To
      > > --
      > >
      > > #!perl -w
      > > use SOAP::Lite;
      > > print SOAP::Lite
      > > -> uri('http://66.75.7.241/Demo')
      > > -> proxy('http://66.75.7.241//cgi-bin/hibye.cgi')
      > > -> hi()
      > > -> result;
      > >
      > > Can someone tell me what's wrong?
      > >
      > > Thx
      > >
      > > JP
      >
      >
      > ------------------------ Yahoo! Groups Sponsor
      >
      > To unsubscribe from this group, send an email to:
      > soaplite-unsubscribe@yahoogroups.com
      >
      >
      >
      > Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      >
      >


      __________________________________________________
      Do You Yahoo!?
      Check out Yahoo! Shopping and Yahoo! Auctions for all of
      your unique holiday gifts! Buy at http://shopping.yahoo.com
      or bid at http://auctions.yahoo.com
    • Chris Davies
      Is that really what you ve modified it to, or did you retype it? - proxy( http://66.75.7.241//cgi-bin/hibye.cgi ) This has a double slash between the host
      Message 2 of 8 , Dec 19, 2001
        Is that really what you've modified it to, or did you retype it?

        -> proxy('http://66.75.7.241//cgi-bin/hibye.cgi')

        This has a double slash between the host part and the pathname which
        shouldn't be there.

        Have you checked the error log? There's always something written there if
        you get a 500 ISE.
        Chris
        --
        Chris Davies, Manheim Online
        Tel. 0113 393-2004 Fax. 0870 444-0482. Mobile 07778 199069


        -----Original Message-----
        From: jpdurrios [mailto:jpdurrios@...]
        Sent: Wednesday, December 19, 2001 2:27 AM
        To: soaplite@yahoogroups.com
        Subject: [soaplite] 500 Internal Server Error at hibye.pl line 3


        Hi,

        I get: 500 Internal Server Error at hibye.pl line 3

        I put hibye.cgi in my /cgi-bin directory an I just modified the
        hibye.pl client as posted at: http://guide.soaplite.com/hibye.pl_

        From
        ----

        #!perl -w
        use SOAP::Lite;
        print SOAP::Lite
        -> uri('http://www.soaplite.com/Demo')
        -> proxy('http://services.soaplite.com/hibye.cgi')
        -> hi()
        -> result;


        To
        --

        #!perl -w
        use SOAP::Lite;
        print SOAP::Lite
        -> uri('http://66.75.7.241/Demo')
        -> proxy('http://66.75.7.241//cgi-bin/hibye.cgi')
        -> hi()
        -> result;

        Can someone tell me what's wrong?

        Thx

        JP



        To unsubscribe from this group, send an email to:
        soaplite-unsubscribe@yahoogroups.com



        Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
      • jpdurrios
        Hi Paul, I used the debug info on fault string and here is the result: (I also paste the source of my both hibye.pl and hibye.cgi and Apache s log at the end)
        Message 3 of 8 , Dec 19, 2001
          Hi Paul,

          I used the debug info on fault string and here is the result:
          (I also paste the source of my both hibye.pl and hibye.cgi and
          Apache's log at the end)

          Output:
          ------

          SOAP::Transport::HTTP::Client::send_receive: POST
          http://66.75.7.241/cgi-bin/hibye.cgi
          Accept: text/xml
          Accept: multipart/*
          Content-Length: 445
          Content-Type: text/xml; charset=utf-8
          SOAPAction: "http://66.75.7.241/Demo#hi"

          <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-
          ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-
          ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
          xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
          xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
          xmlns:xsd="http://www.w3.org/1999/XMLSchema"><SOAP-
          ENV:Body><namesp1:hi xmlns:namesp1="http://66.75.7.241/Demo"/></SOAP-
          ENV:Body></SOAP-ENV:Envelope>
          SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
          Server Error
          Connection: close
          Date: Wed, 19 Dec 2001 12:12:05 GMT
          Server: Apache/1.3.20 (Unix) (Red-Hat/Linux) mod_ssl/2.8.4
          OpenSSL/0.9.6b PHP/4.0.6 mod_perl/1.24_01
          Content-Type: text/html; charset=iso-8859-1
          Client-Date: Wed, 19 Dec 2001 12:12:05 GMT
          Client-Peer: 66.75.7.241:80
          Title: 500 Internal Server Error

          <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
          <HTML><HEAD>
          <TITLE>500 Internal Server Error</TITLE>
          </HEAD><BODY>
          <H1>Internal Server Error</H1>
          The server encountered an internal error or
          misconfiguration and was unable to complete
          your request.<P>
          Please contact the server administrator,
          root@localhost and inform them of the time the error occurred,
          and anything you might have done that may have
          caused the error.<P>
          More information about this error may be available
          in the server error log.<P>
          <HR>
          <ADDRESS>Apache/1.3.20 Server at server.durrios.com Port 80</ADDRESS>
          </BODY></HTML>

          500 Internal Server Error at hibye.pl line 7



          Apache's Error log:
          ------------------

          [Wed Dec 19 04:02:03 2001] [notice] SIGHUP received. Attempting to
          restart
          [Wed Dec 19 04:02:07 2001] [notice] Apache/1.3.20 (Unix) (Red-
          Hat/Linux) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.6 mod_perl/1.24_01
          configured -- resuming normal operations
          [Wed Dec 19 04:02:07 2001] [notice] suEXEC mechanism enabled
          (wrapper: /usr/sbin/suexec)
          [Wed Dec 19 04:12:05 2001] [error] (2)No such file or directory: exec
          of /var/www/cgi-bin/hibye.cgi failed
          [Wed Dec 19 04:12:05 2001] [error] [client 66.75.7.241] Premature end
          of script headers: /var/www/cgi-bin/hibye.cgi
          [Wed Dec 19 04:17:02 2001] [error] [client 64.195.67.45] Client sent
          malformed Host header



          hibye.pl:
          --------

          #!perl -w

          # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul
          Kulchenko --

          use SOAP::Lite +trace => 'debug';

          my $resp = SOAP::Lite
          -> uri('http://66.75.7.241/Demo')
          -> proxy('http://66.75.7.241/cgi-bin/hibye.cgi')
          -> hi();
          die $resp->faultstring if $resp->fault;
          print $resp->result;


          hibye.cgi:
          ---------

          #!perl -w

          # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul
          Kulchenko --

          use SOAP::Transport::HTTP;

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

          package Demo;

          sub hi {
          return "hello, world";
          }

          sub bye {
          return "goodbye, cruel world";
          }

          sub languages {
          return ("Perl", "C", "sh");
        • Paul Kulchenko
          Hi, JP! ... There is no closing bracket. In general, you can always run CGI script from the command line and should have some output from it. For this case you
          Message 4 of 8 , Dec 19, 2001
            Hi, JP!

            Looks like your CGI script has a syntax error:

            > sub languages {
            > return ("Perl", "C", "sh");
            >
            There is no closing bracket.

            In general, you can always run CGI script from the command line and
            should have some output from it. For this case you should get:

            Status: 405 Method not allowed

            The next step would be to get simple CGI script to work, even if it's
            just:

            print "Content-type: text/html\015\012\015\012Hello";

            Then put them together and try to access it from SOAPsh or other
            client. It's not a SOAP error yet, just misconfiguration somewhere on
            server side. Hope it helps.

            Best wishes, Paul.

            --- jpdurrios <jpdurrios@...> wrote:
            > Hi Paul,
            >
            > I used the debug info on fault string and here is the result:
            > (I also paste the source of my both hibye.pl and hibye.cgi and
            > Apache's log at the end)
            >
            > Output:
            > ------
            >
            > SOAP::Transport::HTTP::Client::send_receive: POST
            > http://66.75.7.241/cgi-bin/hibye.cgi
            > Accept: text/xml
            > Accept: multipart/*
            > Content-Length: 445
            > Content-Type: text/xml; charset=utf-8
            > SOAPAction: "http://66.75.7.241/Demo#hi"
            >
            > <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
            > xmlns:SOAP-
            > ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-
            > ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
            > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
            > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
            > xmlns:xsd="http://www.w3.org/1999/XMLSchema"><SOAP-
            > ENV:Body><namesp1:hi
            > xmlns:namesp1="http://66.75.7.241/Demo"/></SOAP-
            > ENV:Body></SOAP-ENV:Envelope>
            > SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
            > Server Error
            > Connection: close
            > Date: Wed, 19 Dec 2001 12:12:05 GMT
            > Server: Apache/1.3.20 (Unix) (Red-Hat/Linux) mod_ssl/2.8.4
            > OpenSSL/0.9.6b PHP/4.0.6 mod_perl/1.24_01
            > Content-Type: text/html; charset=iso-8859-1
            > Client-Date: Wed, 19 Dec 2001 12:12:05 GMT
            > Client-Peer: 66.75.7.241:80
            > Title: 500 Internal Server Error
            >
            > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
            > <HTML><HEAD>
            > <TITLE>500 Internal Server Error</TITLE>
            > </HEAD><BODY>
            > <H1>Internal Server Error</H1>
            > The server encountered an internal error or
            > misconfiguration and was unable to complete
            > your request.<P>
            > Please contact the server administrator,
            > root@localhost and inform them of the time the error occurred,
            > and anything you might have done that may have
            > caused the error.<P>
            > More information about this error may be available
            > in the server error log.<P>
            > <HR>
            > <ADDRESS>Apache/1.3.20 Server at server.durrios.com Port
            > 80</ADDRESS>
            > </BODY></HTML>
            >
            > 500 Internal Server Error at hibye.pl line 7
            >
            >
            >
            > Apache's Error log:
            > ------------------
            >
            > [Wed Dec 19 04:02:03 2001] [notice] SIGHUP received. Attempting to
            >
            > restart
            > [Wed Dec 19 04:02:07 2001] [notice] Apache/1.3.20 (Unix) (Red-
            > Hat/Linux) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.6 mod_perl/1.24_01
            > configured -- resuming normal operations
            > [Wed Dec 19 04:02:07 2001] [notice] suEXEC mechanism enabled
            > (wrapper: /usr/sbin/suexec)
            > [Wed Dec 19 04:12:05 2001] [error] (2)No such file or directory:
            > exec
            > of /var/www/cgi-bin/hibye.cgi failed
            > [Wed Dec 19 04:12:05 2001] [error] [client 66.75.7.241] Premature
            > end
            > of script headers: /var/www/cgi-bin/hibye.cgi
            > [Wed Dec 19 04:17:02 2001] [error] [client 64.195.67.45] Client
            > sent
            > malformed Host header
            >
            >
            >
            > hibye.pl:
            > --------
            >
            > #!perl -w
            >
            > # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul
            > Kulchenko --
            >
            > use SOAP::Lite +trace => 'debug';
            >
            > my $resp = SOAP::Lite
            > -> uri('http://66.75.7.241/Demo')
            > -> proxy('http://66.75.7.241/cgi-bin/hibye.cgi')
            > -> hi();
            > die $resp->faultstring if $resp->fault;
            > print $resp->result;
            >
            >
            > hibye.cgi:
            > ---------
            >
            > #!perl -w
            >
            > # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul
            > Kulchenko --
            >
            > use SOAP::Transport::HTTP;
            >
            > SOAP::Transport::HTTP::CGI
            > -> dispatch_to('Demo')
            > -> handle;
            >
            > package Demo;
            >
            > sub hi {
            > return "hello, world";
            > }
            >
            > sub bye {
            > return "goodbye, cruel world";
            > }
            >
            > sub languages {
            > return ("Perl", "C", "sh");
            >
            >
            >
            >
            > ------------------------ Yahoo! Groups Sponsor
            >
            > To unsubscribe from this group, send an email to:
            > soaplite-unsubscribe@yahoogroups.com
            >
            >
            >
            > Your use of Yahoo! Groups is subject to
            > http://docs.yahoo.com/info/terms/
            >
            >


            __________________________________________________
            Do You Yahoo!?
            Check out Yahoo! Shopping and Yahoo! Auctions for all of
            your unique holiday gifts! Buy at http://shopping.yahoo.com
            or bid at http://auctions.yahoo.com
          • Chris Davies
            The error log messages, suEXECmechanism enabled (wrapper: /usr/sbin/suexec) [error] (2)No such file or directory: exec of /var/www/cgi-bin/hibye.cgi failed
            Message 5 of 8 , Dec 19, 2001
              The error log messages,
              suEXECmechanism enabled (wrapper: /usr/sbin/suexec)
              [error] (2)No such file or directory: exec of /var/www/cgi-bin/hibye.cgi
              failed

              suggest to me that the #! line on the script is wrong. The "no such file or
              directory" can occur not only if the location of the CGI itself is wrong,
              but also if the location specified in a CGI to execute the script is wrong
              too.

              The #! line must be followed by the correct location of your perl executable
              (use "type perl" from the command line to find this out).
              Chris
              --
              Chris Davies, Manheim Online
              Tel. 0113 393-2004 Fax. 0870 444-0482. Mobile 07778 199069


              -----Original Message-----
              From: Paul Kulchenko [mailto:paulclinger@...]
              Sent: Wednesday, December 19, 2001 3:34 PM
              To: jpdurrios; soaplite@yahoogroups.com
              Subject: Re: [soaplite] Re: 500 Internal Server Error at hibye.pl line 3


              Hi, JP!

              Looks like your CGI script has a syntax error:

              > sub languages {
              > return ("Perl", "C", "sh");
              >
              There is no closing bracket.

              In general, you can always run CGI script from the command line and
              should have some output from it. For this case you should get:

              Status: 405 Method not allowed

              The next step would be to get simple CGI script to work, even if it's
              just:

              print "Content-type: text/html\015\012\015\012Hello";

              Then put them together and try to access it from SOAPsh or other
              client. It's not a SOAP error yet, just misconfiguration somewhere on
              server side. Hope it helps.

              Best wishes, Paul.

              --- jpdurrios <jpdurrios@...> wrote:
              > Hi Paul,
              >
              > I used the debug info on fault string and here is the result:
              > (I also paste the source of my both hibye.pl and hibye.cgi and
              > Apache's log at the end)
              >
              > Output:
              > ------
              >
              > SOAP::Transport::HTTP::Client::send_receive: POST
              > http://66.75.7.241/cgi-bin/hibye.cgi
              > Accept: text/xml
              > Accept: multipart/*
              > Content-Length: 445
              > Content-Type: text/xml; charset=utf-8
              > SOAPAction: "http://66.75.7.241/Demo#hi"
              >
              > <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
              > xmlns:SOAP-
              > ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-
              > ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
              > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
              > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
              > xmlns:xsd="http://www.w3.org/1999/XMLSchema"><SOAP-
              > ENV:Body><namesp1:hi
              > xmlns:namesp1="http://66.75.7.241/Demo"/></SOAP-
              > ENV:Body></SOAP-ENV:Envelope>
              > SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
              > Server Error
              > Connection: close
              > Date: Wed, 19 Dec 2001 12:12:05 GMT
              > Server: Apache/1.3.20 (Unix) (Red-Hat/Linux) mod_ssl/2.8.4
              > OpenSSL/0.9.6b PHP/4.0.6 mod_perl/1.24_01
              > Content-Type: text/html; charset=iso-8859-1
              > Client-Date: Wed, 19 Dec 2001 12:12:05 GMT
              > Client-Peer: 66.75.7.241:80
              > Title: 500 Internal Server Error
              >
              > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
              > <HTML><HEAD>
              > <TITLE>500 Internal Server Error</TITLE>
              > </HEAD><BODY>
              > <H1>Internal Server Error</H1>
              > The server encountered an internal error or
              > misconfiguration and was unable to complete
              > your request.<P>
              > Please contact the server administrator,
              > root@localhost and inform them of the time the error occurred,
              > and anything you might have done that may have
              > caused the error.<P>
              > More information about this error may be available
              > in the server error log.<P>
              > <HR>
              > <ADDRESS>Apache/1.3.20 Server at server.durrios.com Port
              > 80</ADDRESS>
              > </BODY></HTML>
              >
              > 500 Internal Server Error at hibye.pl line 7
              >
              >
              >
              > Apache's Error log:
              > ------------------
              >
              > [Wed Dec 19 04:02:03 2001] [notice] SIGHUP received. Attempting to
              >
              > restart
              > [Wed Dec 19 04:02:07 2001] [notice] Apache/1.3.20 (Unix) (Red-
              > Hat/Linux) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.6 mod_perl/1.24_01
              > configured -- resuming normal operations
              > [Wed Dec 19 04:02:07 2001] [notice] suEXEC mechanism enabled
              > (wrapper: /usr/sbin/suexec)
              > [Wed Dec 19 04:12:05 2001] [error] (2)No such file or directory:
              > exec
              > of /var/www/cgi-bin/hibye.cgi failed
              > [Wed Dec 19 04:12:05 2001] [error] [client 66.75.7.241] Premature
              > end
              > of script headers: /var/www/cgi-bin/hibye.cgi
              > [Wed Dec 19 04:17:02 2001] [error] [client 64.195.67.45] Client
              > sent
              > malformed Host header
              >
              >
              >
              > hibye.pl:
              > --------
              >
              > #!perl -w
              >
              > # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul
              > Kulchenko --
              >
              > use SOAP::Lite +trace => 'debug';
              >
              > my $resp = SOAP::Lite
              > -> uri('http://66.75.7.241/Demo')
              > -> proxy('http://66.75.7.241/cgi-bin/hibye.cgi')
              > -> hi();
              > die $resp->faultstring if $resp->fault;
              > print $resp->result;
              >
              >
              > hibye.cgi:
              > ---------
              >
              > #!perl -w
              >
              > # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul
              > Kulchenko --
              >
              > use SOAP::Transport::HTTP;
              >
              > SOAP::Transport::HTTP::CGI
              > -> dispatch_to('Demo')
              > -> handle;
              >
              > package Demo;
              >
              > sub hi {
              > return "hello, world";
              > }
              >
              > sub bye {
              > return "goodbye, cruel world";
              > }
              >
              > sub languages {
              > return ("Perl", "C", "sh");
              >
              >
              >
              >
              > ------------------------ Yahoo! Groups Sponsor
              >
              > To unsubscribe from this group, send an email to:
              > soaplite-unsubscribe@yahoogroups.com
              >
              >
              >
              > Your use of Yahoo! Groups is subject to
              > http://docs.yahoo.com/info/terms/
              >
              >


              __________________________________________________
              Do You Yahoo!?
              Check out Yahoo! Shopping and Yahoo! Auctions for all of
              your unique holiday gifts! Buy at http://shopping.yahoo.com
              or bid at http://auctions.yahoo.com

              To unsubscribe from this group, send an email to:
              soaplite-unsubscribe@yahoogroups.com



              Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
            • Jean-Philippe Y. Durrios
              Chris, Thank you very much, you sloved my problem. Which is odd, since I could other run scripts with #!/perl -w ... I ll ask around in #perl Thanx again. JP
              Message 6 of 8 , Dec 19, 2001
                Chris,

                Thank you very much, you sloved my problem.
                Which is odd, since I could other run scripts with #!/perl -w ...
                I'll ask around in #perl

                Thanx again.

                JP

                --- Chris Davies <Chris.Davies@...> wrote:
                > The error log messages,
                > suEXECmechanism enabled (wrapper: /usr/sbin/suexec)
                > [error] (2)No such file or directory: exec of /var/www/cgi-bin/hibye.cgi
                > failed
                >
                > suggest to me that the #! line on the script is wrong. The "no such file or
                > directory" can occur not only if the location of the CGI itself is wrong,
                > but also if the location specified in a CGI to execute the script is wrong
                > too.
                >
                > The #! line must be followed by the correct location of your perl executable
                > (use "type perl" from the command line to find this out).
                > Chris
                > --
                > Chris Davies, Manheim Online
                > Tel. 0113 393-2004 Fax. 0870 444-0482. Mobile 07778 199069
                >
                >
                > -----Original Message-----
                > From: Paul Kulchenko [mailto:paulclinger@...]
                > Sent: Wednesday, December 19, 2001 3:34 PM
                > To: jpdurrios; soaplite@yahoogroups.com
                > Subject: Re: [soaplite] Re: 500 Internal Server Error at hibye.pl line 3
                >
                >
                > Hi, JP!
                >
                > Looks like your CGI script has a syntax error:
                >
                > > sub languages {
                > > return ("Perl", "C", "sh");
                > >
                > There is no closing bracket.
                >
                > In general, you can always run CGI script from the command line and
                > should have some output from it. For this case you should get:
                >
                > Status: 405 Method not allowed
                >
                > The next step would be to get simple CGI script to work, even if it's
                > just:
                >
                > print "Content-type: text/html\015\012\015\012Hello";
                >
                > Then put them together and try to access it from SOAPsh or other
                > client. It's not a SOAP error yet, just misconfiguration somewhere on
                > server side. Hope it helps.
                >
                > Best wishes, Paul.
                >
                > --- jpdurrios <jpdurrios@...> wrote:
                > > Hi Paul,
                > >
                > > I used the debug info on fault string and here is the result:
                > > (I also paste the source of my both hibye.pl and hibye.cgi and
                > > Apache's log at the end)
                > >
                > > Output:
                > > ------
                > >
                > > SOAP::Transport::HTTP::Client::send_receive: POST
                > > http://66.75.7.241/cgi-bin/hibye.cgi
                > > Accept: text/xml
                > > Accept: multipart/*
                > > Content-Length: 445
                > > Content-Type: text/xml; charset=utf-8
                > > SOAPAction: "http://66.75.7.241/Demo#hi"
                > >
                > > <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
                > > xmlns:SOAP-
                > > ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-
                > > ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
                > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                > > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
                > > xmlns:xsd="http://www.w3.org/1999/XMLSchema"><SOAP-
                > > ENV:Body><namesp1:hi
                > > xmlns:namesp1="http://66.75.7.241/Demo"/></SOAP-
                > > ENV:Body></SOAP-ENV:Envelope>
                > > SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
                > > Server Error
                > > Connection: close
                > > Date: Wed, 19 Dec 2001 12:12:05 GMT
                > > Server: Apache/1.3.20 (Unix) (Red-Hat/Linux) mod_ssl/2.8.4
                > > OpenSSL/0.9.6b PHP/4.0.6 mod_perl/1.24_01
                > > Content-Type: text/html; charset=iso-8859-1
                > > Client-Date: Wed, 19 Dec 2001 12:12:05 GMT
                > > Client-Peer: 66.75.7.241:80
                > > Title: 500 Internal Server Error
                > >
                > > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
                > > <HTML><HEAD>
                > > <TITLE>500 Internal Server Error</TITLE>
                > > </HEAD><BODY>
                > > <H1>Internal Server Error</H1>
                > > The server encountered an internal error or
                > > misconfiguration and was unable to complete
                > > your request.<P>
                > > Please contact the server administrator,
                > > root@localhost and inform them of the time the error occurred,
                > > and anything you might have done that may have
                > > caused the error.<P>
                > > More information about this error may be available
                > > in the server error log.<P>
                > > <HR>
                > > <ADDRESS>Apache/1.3.20 Server at server.durrios.com Port
                > > 80</ADDRESS>
                > > </BODY></HTML>
                > >
                > > 500 Internal Server Error at hibye.pl line 7
                > >
                > >
                > >
                > > Apache's Error log:
                > > ------------------
                > >
                > > [Wed Dec 19 04:02:03 2001] [notice] SIGHUP received. Attempting to
                > >
                > > restart
                > > [Wed Dec 19 04:02:07 2001] [notice] Apache/1.3.20 (Unix) (Red-
                > > Hat/Linux) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.6 mod_perl/1.24_01
                > > configured -- resuming normal operations
                > > [Wed Dec 19 04:02:07 2001] [notice] suEXEC mechanism enabled
                > > (wrapper: /usr/sbin/suexec)
                > > [Wed Dec 19 04:12:05 2001] [error] (2)No such file or directory:
                > > exec
                > > of /var/www/cgi-bin/hibye.cgi failed
                > > [Wed Dec 19 04:12:05 2001] [error] [client 66.75.7.241] Premature
                > > end
                > > of script headers: /var/www/cgi-bin/hibye.cgi
                > > [Wed Dec 19 04:17:02 2001] [error] [client 64.195.67.45] Client
                > > sent
                > > malformed Host header
                > >
                > >
                > >
                > > hibye.pl:
                > > --------
                > >
                > > #!perl -w
                > >
                > > # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul
                > > Kulchenko --
                > >
                > > use SOAP::Lite +trace => 'debug';
                > >
                > > my $resp = SOAP::Lite
                > > -> uri('http://66.75.7.241/Demo')
                > > -> proxy('http://66.75.7.241/cgi-bin/hibye.cgi')
                > > -> hi();
                > > die $resp->faultstring if $resp->fault;
                > > print $resp->result;
                > >
                > >
                > > hibye.cgi:
                > > ---------
                > >
                > > #!perl -w
                > >
                > > # -- SOAP::Lite -- guide.soaplite.com -- Copyright (C) 2001 Paul
                > > Kulchenko --
                > >
                > > use SOAP::Transport::HTTP;
                > >
                > > SOAP::Transport::HTTP::CGI
                > > -> dispatch_to('Demo')
                > > -> handle;
                > >
                > > package Demo;
                > >
                > > sub hi {
                > > return "hello, world";
                > > }
                > >
                > > sub bye {
                > > return "goodbye, cruel world";
                > > }
                > >
                > > sub languages {
                > > return ("Perl", "C", "sh");
                > >
                > >
                > >
                > >
                > > ------------------------ Yahoo! Groups Sponsor
                > >
                > > To unsubscribe from this group, send an email to:
                > > soaplite-unsubscribe@yahoogroups.com
                > >
                > >
                > >
                > > Your use of Yahoo! Groups is subject to
                > > http://docs.yahoo.com/info/terms/
                > >
                > >
                >
                >
                > __________________________________________________
                > Do You Yahoo!?
                > Check out Yahoo! Shopping and Yahoo! Auctions for all of
                > your unique holiday gifts! Buy at http://shopping.yahoo.com
                > or bid at http://auctions.yahoo.com
                >
                === message truncated ===


                __________________________________________________
                Do You Yahoo!?
                Check out Yahoo! Shopping and Yahoo! Auctions for all of
                your unique holiday gifts! Buy at http://shopping.yahoo.com
                or bid at http://auctions.yahoo.com
              Your message has been successfully submitted and would be delivered to recipients shortly.