Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot, bind-address mysql multiple, sanibleone xxxx, ftp://192.168.100.100/, www.xxxcon

Links

XODOX
Impressum

#1: Trying to get a simple SOAP server to work

Posted on 2008-04-24 20:20:17 by 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

Report this message

#2: Re: Trying to get a simple SOAP server to work

Posted on 2008-04-24 21:46:09 by 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.

Report this message