The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package TestSOAP::convert;
use strict;
use warnings;

sub convert {
  my ($self, %args) = @_;
  my $mode = $args{mode};
  my $string = $args{string};
  my $response = ($mode eq 'uc') ? uc($string) : lc($string);
  return {results => $response};
}

1;