Trying to get a simple SOAP server to work

P

Philluminati

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
 
J

J. Gleixner

Philluminati said:
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.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top