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

500 internal server error

Expand Messages
  • vls.gollapudi
    Hi, I am new to Soap::Lite and am trying to run the simple hibye example as detailed on the quickstart page of soaplite.com. I have done a search for my
    Message 1 of 2 , Mar 9, 2007
    View Source
    • 0 Attachment
      Hi,

      I am new to Soap::Lite and am trying to run the simple hibye example
      as detailed on the quickstart page of soaplite.com. I have done a
      search for my problem and tried all solutions suggested so far, but I
      still can't get the example to work, please find my code below:

      the server:

      #!/usr/bin/perl -w

      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";
      }


      the client:

      #!/usr/bin/perl -w

      use SOAP::Lite +trace;

      print SOAP::Lite
      -> uri('http://psbsm.nottingham.ac.uk/Demo')

      -> proxy('http://psbsm.nottingham.ac.uk/cgi-bin/sirisha/hibye.cgi')
      -> hi()
      -> result;


      the error:

      Unquoted string "trace" may clash with future reserved word at
      hibye.pl line 5.
      SOAP::Transport::new: ()
      SOAP::Serializer::new: ()
      SOAP::Deserializer::new: ()
      SOAP::Parser::new: ()
      SOAP::Lite::new: ()
      SOAP::Transport::HTTP::Client::new: ()
      SOAP::Lite::call: ()
      SOAP::Serializer::envelope: ()
      SOAP::Serializer::envelope: hi
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x99fc0c4)
      SOAP::Transport::HTTP::Client::send_receive: POST
      http://psbsm.nottingham.ac.uk/cgi-bin/sirisha/hibye.cgi HTTP/1.1
      Accept: text/xml
      Accept: multipart/*
      Accept: application/soap
      Content-Length: 431
      Content-Type: text/xml; charset=utf-8
      SOAPAction: "http://psbsm.nottingham.ac.uk/Demo#hi"

      <?xml version="1.0" encoding="UTF-8"?><soap:Envelope
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><hi
      xmlns="http://psbsm.nottingham.ac.uk/Demo" xsi:nil="true"
      /></soap:Body></soap:Envelope>
      SOAP::Transport::HTTP::Client::send_receive:
      HTTP::Response=HASH(0x9ee99b4)
      SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
      Server Error
      Connection: close
      Date: Fri, 09 Mar 2007 10:43:21 GMT
      Server: Apache/2.0.54 (Fedora)
      Content-Length: 642
      Content-Type: text/html; charset=iso-8859-1
      Client-Date: Fri, 09 Mar 2007 10:43:21 GMT
      Client-Peer: 128.243.186.104:80
      Client-Response-Num: 1
      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>
      <p>The server encountered an internal error or
      misconfiguration and was unable to complete
      your request.</p>
      <p>Please contact the server administrator,
      xyz@... and inform them of the time the
      error occurred,
      and anything you might have done that may have
      caused the error.</p>
      <p>More information about this error may be available
      in the server error log.</p>
      <hr>
      <address>Apache/2.0.54 (Fedora) Server at psbsm.nottingham.ac.uk Port
      80</address>
      </body></html>
      SOAP::Deserializer::deserialize: ()
      SOAP::Parser::decode: ()
      500 Internal Server Error at hibye.pl line 7
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Data::DESTROY: ()
      SOAP::Transport::HTTP::Client::DESTROY: ()
      SOAP::Lite::DESTROY: ()
      SOAP::Deserializer::DESTROY: ()
      SOAP::Parser::DESTROY: ()
      SOAP::Transport::DESTROY: ()
      SOAP::Serializer::DESTROY: ()
      SOAP::Data::DESTROY: ()


      I have Googled my problem and tried everything I have come across -
      checked the path to perl is correct in the client and the server,
      checked that other .cgi scripts work alright (they do), and tried
      changing the uri to various permutations (adding in the cg-bin to the
      path etc) - nothing works!

      if anyone can shed any light on my problem or the error message, I
      would be very grateful :)

      Sirisha
    • vls.gollapudi
      Thanks for the replies - my problem was a simple permissions error :) ... example ... but I ... ( http://psbsm.nottingham.ac.uk/Demo ) ...
      Message 2 of 2 , Mar 12, 2007
      View Source
      • 0 Attachment
        Thanks for the replies - my problem was a simple permissions error :)

        --- In soaplite@yahoogroups.com, "vls.gollapudi" <vls.gollapudi@...>
        wrote:
        >
        > Hi,
        >
        > I am new to Soap::Lite and am trying to run the simple hibye
        example
        > as detailed on the quickstart page of soaplite.com. I have done a
        > search for my problem and tried all solutions suggested so far,
        but I
        > still can't get the example to work, please find my code below:
        >
        > the server:
        >
        > #!/usr/bin/perl -w
        >
        > 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";
        > }
        >
        >
        > the client:
        >
        > #!/usr/bin/perl -w
        >
        > use SOAP::Lite +trace;
        >
        > print SOAP::Lite
        > -> uri
        ('http://psbsm.nottingham.ac.uk/Demo')
        >
        > -> proxy('http://psbsm.nottingham.ac.uk/cgi-
        bin/sirisha/hibye.cgi')
        > -> hi()
        > -> result;
        >
        >
        > the error:
        >
        > Unquoted string "trace" may clash with future reserved word at
        > hibye.pl line 5.
        > SOAP::Transport::new: ()
        > SOAP::Serializer::new: ()
        > SOAP::Deserializer::new: ()
        > SOAP::Parser::new: ()
        > SOAP::Lite::new: ()
        > SOAP::Transport::HTTP::Client::new: ()
        > SOAP::Lite::call: ()
        > SOAP::Serializer::envelope: ()
        > SOAP::Serializer::envelope: hi
        > SOAP::Data::new: ()
        > SOAP::Data::new: ()
        > SOAP::Data::new: ()
        > SOAP::Data::new: ()
        > SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH
        (0x99fc0c4)
        > SOAP::Transport::HTTP::Client::send_receive: POST
        > http://psbsm.nottingham.ac.uk/cgi-bin/sirisha/hibye.cgi HTTP/1.1
        > Accept: text/xml
        > Accept: multipart/*
        > Accept: application/soap
        > Content-Length: 431
        > Content-Type: text/xml; charset=utf-8
        > SOAPAction: "http://psbsm.nottingham.ac.uk/Demo#hi"
        >
        > <?xml version="1.0" encoding="UTF-8"?><soap:Envelope
        > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
        > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        > soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        >
        xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><hi
        > xmlns="http://psbsm.nottingham.ac.uk/Demo" xsi:nil="true"
        > /></soap:Body></soap:Envelope>
        > SOAP::Transport::HTTP::Client::send_receive:
        > HTTP::Response=HASH(0x9ee99b4)
        > SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal
        > Server Error
        > Connection: close
        > Date: Fri, 09 Mar 2007 10:43:21 GMT
        > Server: Apache/2.0.54 (Fedora)
        > Content-Length: 642
        > Content-Type: text/html; charset=iso-8859-1
        > Client-Date: Fri, 09 Mar 2007 10:43:21 GMT
        > Client-Peer: 128.243.186.104:80
        > Client-Response-Num: 1
        > 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>
        > <p>The server encountered an internal error or
        > misconfiguration and was unable to complete
        > your request.</p>
        > <p>Please contact the server administrator,
        > xyz@... and inform them of the time the
        > error occurred,
        > and anything you might have done that may have
        > caused the error.</p>
        > <p>More information about this error may be available
        > in the server error log.</p>
        > <hr>
        > <address>Apache/2.0.54 (Fedora) Server at psbsm.nottingham.ac.uk
        Port
        > 80</address>
        > </body></html>
        > SOAP::Deserializer::deserialize: ()
        > SOAP::Parser::decode: ()
        > 500 Internal Server Error at hibye.pl line 7
        > SOAP::Data::DESTROY: ()
        > SOAP::Data::DESTROY: ()
        > SOAP::Data::DESTROY: ()
        > SOAP::Transport::HTTP::Client::DESTROY: ()
        > SOAP::Lite::DESTROY: ()
        > SOAP::Deserializer::DESTROY: ()
        > SOAP::Parser::DESTROY: ()
        > SOAP::Transport::DESTROY: ()
        > SOAP::Serializer::DESTROY: ()
        > SOAP::Data::DESTROY: ()
        >
        >
        > I have Googled my problem and tried everything I have come across -
        > checked the path to perl is correct in the client and the server,
        > checked that other .cgi scripts work alright (they do), and tried
        > changing the uri to various permutations (adding in the cg-bin to
        the
        > path etc) - nothing works!
        >
        > if anyone can shed any light on my problem or the error message, I
        > would be very grateful :)
        >
        > Sirisha
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.