Subject: | SOAP-Lite-1.01 - Lite.pm sets incorrect XML version of 1.01 |
Date: | Mon, 29 Jul 2013 17:03:56 -0700 |
To: | bug-SOAP-Lite [...] rt.cpan.org |
From: | Robert Baller <rballer [...] seecontrol.com> |
OS: CentOS 6.4 x86_64
Perl: 5.10.1
Module: SOAP-Lite-1.01
Perl web service client script will generate a request to the server but
the server will request the request due to the version of XML being
specified in the content sent to the server:
Java Exception on server => Caused by:
com.ctc.wstx.exc.WstxParsingException: Invalid XML pseudo-attribute
'version' value '1.01'; expected "1.0" or "1.1" at [row,col
{unknown-source}]: [1,20]
The XML sent to the server has:
<?xml version="1.01" encoding="UTF-8"?>
Versions prior to 1.01 had xml version as "1.0".
You'll see the previous versions had this line of code:
$prolog = qq!<?xml version="1.0" encoding="@{[$self->encoding]}"?>!
Package version 1.01 has:
$prolog = qq!<?xml version="1.01" encoding="@{[$self->encoding]}"?>!
It looks like a mass edit or copy/paste error.