Subject: | Spaces are stripped from token data type |
I am interfacing with a service that returns a token with the following
value:
<responseMessage xmlns="...">REJECTED - Duplicate Lead</responseMessage>
however when I access it through the API it has no spaces:
$result->{parameters}{responseMessage} eq 'REJECTED-DuplicateLead'
I am wondering if the problem is that Schema/BuiltInTypes.pm should
define _collapse along these lines instead:
sub _collapse { $_ = $_[0]; s/^\s+//; s/\s+$//; s/(\s)$1+/$1/g; $_ };