Subject: | SOAP::Lite bug |
Date: | Wed, 6 Dec 2006 13:23:34 -0500 |
To: | <bug-SOAP-Lite [...] rt.cpan.org> |
From: | "Frantisek Brabec" <frantisekb [...] roamsecure.net> |
Message body not shown because it is not plain text.
As of v0.69, SOAP::Lite does not encode content of anyURI fields. They can
however contain characters that need to be encoded such as ampersands (to
separate parameters within the URL). The following block needs to be added
into package SOAP::XMLSchema2001::Serializer (file SOAP/Lite.pm), a suitable
location is (for v0.69) on line 254.
sub as_anyURI {
my $self = shift;
my($value, $name, $type, $attr) = @_;
die "String value expected instead of @{[ref $value]} reference\n" if ref
$value;
return [$name, {'xsi:type' => 'xsd:anyURI', %$attr},
SOAP::Utils::encode_data($value)];
}
<http://www.roamsecure.net/>
Frantisek Brabec, Ph.D.
Chief Scientist
703.294.6768 x254
Fax: 703.294.6560
frantisekb@roamsecure.net
www.roamsecure.net
Setting the national standard for text alerting
NOTICE: The information contained in this e-mail message is proprietary and
intended only for the personal and confidential use of the recipient(s)
named above. If the reader of this message is not the named addressee, the
reader should immediately notify the sender and destroy the information
transmitted without making any copy or distribution thereof. The
information contained in this transmission may also be subject to a
non-disclosure agreement. If so, the recipient is directed to disclose the
information only to those who are bound to retain the confidentiality under
provisions of the agreement. Thank you.