SOAP::Lite example meets http server 500 error?

Discussion in 'Perl Misc' started by jck11, Feb 6, 2006.

  1. jck11

    jck11 Guest

    Hi all
    I meet http 500 error when I run the perl code below
    Someone can give me information about the error message and how to solve it
    Thanks a lot

    ------------------------------Server side:linux OS 755)
    Package World;

    sub new {
    bless {}, shift;

    sub HelloWorld {
    my ($self) = @_;

    return "Hello World\n";

    sub GoodByeWorld {
    my ($self,$adjective) = @_;
    return "Goodbye $adjective World\n";

    ------------------------------Server side:linux OS 755)

    use SOAP::Transport::HTTP;
    use World;

    -> dispatch_to('World')
    -> handle;

    ------------------------------client side:winXP OS
    use SOAP::Lite +trace => all;

    my $s = SOAP::Lite
    print $s->result();

    -----------------------------client side: run result
    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: HelloWorld
    SOAP::Data::new: ()
    SOAP::Data::new: ()
    SOAP::Data::new: ()
    SOAP::Data::new: ()
    SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x1b9a994)
    SOAP::Transport::HTTP::Client::send_receive: POST
    Accept: text/xml
    Accept: multipart/*
    Content-Length: 435
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "World#HelloWorld"

    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
    ncoding/" xmlns:SOAP-ENV=""
    SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x1d89f88)
    SOAP::Transport::HTTP::Client::send_receive: HTTP/1.0 500 Internal Server
    Connection: close
    Date: Thu, 26 Jan 2006 05:58:34 GMT
    Server: Apache/2.0.55 (Trustix Secure Linux/Linux) PHP/5.0.5
    mod_python/3.1.4 Py
    thon/2.3.5 mod_perl/2.0.0 Perl/v5.8.7
    Content-Length: 746
    Content-Type: text/html; charset=iso-8859-1
    Client-Date: Thu, 26 Jan 2006 06:14:51 GMT
    Client-Response-Num: 1
    Title: 500 Internal Server Error
    jck11, Feb 6, 2006
    1. Advertisements

  2. Obviously, you have checked the server error logs to find out what the
    actual error is, and to verify that this question actually has something to
    do with Perl.

    Care to tell us what you found out?

    A. Sinan Unur, Feb 6, 2006
    1. Advertisements

  3. jck11

    ced Guest

    If you haven't already, you might want to look at:

    There are several mailing lists including one for user support that's
    to target experienced SOAP::Lite users.

    ced, Feb 7, 2006

  4. Your Question is Asked Frequently.

    perldoc -q 500

    My CGI script runs from the command line but not the
    browser. (500 Server Error)


    Case matters.
    Tad McClellan, Feb 7, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.