Perl: Soap deserialization error

Sometimes the following error is displayed, if application uses the old version of CPAN SOAP module:
“Client Application failed during request deserialization: no element found at line 1, column 0, byte -1 at XML/”

The possilbe solution is to change SOAP::Transport::HTTP module (SOAP/Transport/, function “handle”:

[cc lang=”perl”]
sysread( STDIN, $buffer, $length )

should be replaced by

[cc lang=”perl”]
read( STDIN, $buffer, $length )

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.