J
jck11
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:eserializer::new: ()
SOAP:arser::new: ()
SOAP::Lite::new: ()
SOAP::Transport::HTTP::Client::new: ()
SOAP::Lite::call: ()
SOAP::Serializer::envelope: ()
SOAP::Serializer::envelope: HelloWorld
SOAP:ata::new: ()
SOAP:ata::new: ()
SOAP:ata::new: ()
SOAP:ata::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
.....................
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:eserializer::new: ()
SOAP:arser::new: ()
SOAP::Lite::new: ()
SOAP::Transport::HTTP::Client::new: ()
SOAP::Lite::call: ()
SOAP::Serializer::envelope: ()
SOAP::Serializer::envelope: HelloWorld
SOAP:ata::new: ()
SOAP:ata::new: ()
SOAP:ata::new: ()
SOAP:ata::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
.....................