#86 XML not encoded when sent as return value in XMLRPC

open
Byrne Reese
Transport (26)
5
2005-07-18
2005-07-18
Anonymous
No

in version 0.65_6, I think I have stumbled on a rather
obscure "feature"/ potential bug. Its a little bit of an odd
one.

I'm using a SOAP::Lite mod_perl server to return data to
a java program, although when I return it to a perl
program I get similar results after doing a bit of playing
around I think I've managed to reproduce the error with
the following code:

sub xmlreturn
{

my $xml = "<?xml version=\"1.0\" encoding=\"UTF-8
\" ?>\n<root xml:ns=\"http:/
/val\">test</root>";

return $xml;

};

When I look at the output in TCPTunnel/Monitor, I can
see that in SOAP::Lite version 0.60, the less than
charactors are all quoted ( ampersand l t semicolon )
which enables the message to be read on the client.
Unfortuntely, version 0.65_6 does not quote these
charactors, leading my code to die.

Discussion