Trying to get a simple SOAP server to work
am 24.04.2008 20:20:17 von Phillip Taylor
I am trying to follow this guide to make a perl based SOAP server:
http://articles.techrepublic.com.com/5100-22-1046624.html
But the client times out waiting for a response. If I visit the perl
cgi script in the browser I get a "500 internal error" and when I look
in the apache error log I can see these messages, but I don't know
what they mean. Can someone help please?
[Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Subroutine new
redefined at /usr/lib/perl5/site_perl/5.8.5/SOAP/Parser.pm line 42.
[Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Subroutine DESTROY
redefined at /usr/lib/perl5/site_perl/5.8.5/SOAP/Parser.pm line 63.
[Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Subroutine new
redefined at /usr/lib/perl5/site_perl/5.8.5/SOAP/Transport/HTTP/
Server.pm line 13.
[Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Can't locate object
method "new" via package "HTTP::Response" (perhaps you forgot to load
"HTTP::Response"?) at /usr/lib/perl5/site_perl/5.8.5/SOAP/Transport/
HTTP.pm line 473.
[Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Premature end of
script headers: funcs.cgi
All the code I have used is under the hyper link mentioned at the top
of the page.
Phillip Taylor
Re: Trying to get a simple SOAP server to work
am 24.04.2008 21:46:09 von glex_no-spam
Philluminati wrote:
> I am trying to follow this guide to make a perl based SOAP server:
>
> http://articles.techrepublic.com.com/5100-22-1046624.html
>
> But the client times out waiting for a response. If I visit the perl
> cgi script in the browser I get a "500 internal error" and when I look
> in the apache error log I can see these messages, but I don't know
> what they mean. Can someone help please?
>
> [Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Subroutine new
> redefined at /usr/lib/perl5/site_perl/5.8.5/SOAP/Parser.pm line 42.
> [Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Subroutine DESTROY
> redefined at /usr/lib/perl5/site_perl/5.8.5/SOAP/Parser.pm line 63.
> [Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Subroutine new
> redefined at /usr/lib/perl5/site_perl/5.8.5/SOAP/Transport/HTTP/
> Server.pm line 13.
> [Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Can't locate object
> method "new" via package "HTTP::Response" (perhaps you forgot to load
> "HTTP::Response"?) at /usr/lib/perl5/site_perl/5.8.5/SOAP/Transport/
> HTTP.pm line 473.
Do you have LWP installed? Usually installed as part of libwww.
> [Thu Apr 24 19:38:26 2008] [error] [client MY_IP] Premature end of
> script headers: funcs.cgi
>
> All the code I have used is under the hyper link mentioned at the top
> of the page.
There are a few pieces of code there. Post your client and your Echo.pm.
First, though, ensure your code compiles:
perl -c whatever.cgi
perl -c client.pl
Also, ensure you have installed all of the needed modules and
the installation's 'make test' is successful.