SOAP::LITE Can"t read entity body

SOAP::LITE Can"t read entity body

am 02.07.2005 02:34:30 von hermbagger

I'm running win2k3 IIS6. I have perl installed and working just fine.
I am having problems with the hello world example from:
http://guide.soaplite.com/

I have the server running on one machine with this code:
#!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 running on another maching:
#!perl -w
use SOAP::Lite;
$SOAP::Constants::DO_NOT_CHECK_CONTENT_TYPE = 1;
print SOAP::Lite
-> uri('http://mycomp/Demo')
-> proxy('http://mycomp/hibye.cgi')
-> hi()
-> result;

When I run the client as above, works just fine for 3 or 4 times, and
then IIS starts to send a "service unavailable" error for some reason.

If i try to call the bye function instead of the hi function ie:
#!perl -w
use SOAP::Lite;
$SOAP::Constants::DO_NOT_CHECK_CONTENT_TYPE = 1;
print SOAP::Lite
-> uri('http://mycomp/Demo')
-> proxy('http://mycomp/hibye.cgi')
-> bye()
-> result;

I always get the following error:
500 Can't read entity body: Unknown error at C:\practice\hibye.pl line
4

It seems that this is due to the length of the returned string, but I'm
not sure why! Please help.

Thank you