Boring has asked for the wisdom of the Perl Monks concerning the following question:
I am new to SOAP.
I have set up 2 machines, 1 client(Ubuntu), 1 server(centos).
And try to test the SOAP by using SOAP::Lite:
Server:
#!perl -w use SOAP::Transport::HTTP; SOAP::Transport::HTTP::CGI -> dispatch_to('Demo') -> handle; package Demo; sub hi { return "hello, world"; } sub bye { return "goodbye, cruel world"; }
Client:
#!perl -w use SOAP::Lite; print SOAP::Lite -> uri('http://www.mysite.com/Demo') -> proxy('http://www.mysite.com/hibye.cgi') -> hi() -> result;
However, when I run my client script 'testclient.pl', I get the following errors:
500 Can't read entity body: Connection reset by peer at ./testclient.pl line 3
Please help. Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need Help On SOAP::Lite
by Corion (Patriarch) on Oct 04, 2010 at 09:39 UTC | |
by Boring (Novice) on Oct 05, 2010 at 01:41 UTC | |
by Corion (Patriarch) on Oct 05, 2010 at 07:17 UTC | |
by Boring (Novice) on Oct 05, 2010 at 09:49 UTC |