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 World.pm(mode 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";
    }
    1;

    ------------------------------Server side:linux OS world.pl(mode 755)
    #!/usr/bin/perl

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

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

    ------------------------------client side:winXP OS world.pl(ActivePerl)
    use SOAP::Lite +trace => all;

    my $s = SOAP::Lite
    ->uri('World')
    ->proxy('http://mail.banciao.gov.tw/cgi-bin/pl/world.pl')
    ->HelloWorld();
    print $s->result();

    -----------------------------client side: run result
    D:\>perl world.pl
    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
    http://mail.banciao.gov.tw/cgi
    -bin/pl/world.pl
    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
    xmlns:xsi="http://www.w
    3.org/1999/XMLSchema-instance"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/e
    ncoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="
    http://www.w3.org/1999/XMLSchema"
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap
    ..org/soap/encoding/"><SOAP-ENV:Body><namesp1:HelloWorld
    xmlns:namesp1="World"/><
    /SOAP-ENV:Body></SOAP-ENV:Envelope>
    SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x1d89f88)
    SOAP::Transport::HTTP::Client::send_receive: HTTP/1.0 500 Internal Server
    Error
    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-Peer: 163.29.146.131:80
    Client-Response-Num: 1
    Title: 500 Internal Server Error
    .....................
     
    jck11, Feb 6, 2006
    #1
    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?

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

  3. jck11

    ced Guest


    If you haven't already, you might want to look at:
    http://www.soaplite.com/

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

    hth,
     
    ced, Feb 7, 2006
    #3

  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
    #4
    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.