I have a need to make various web service API calls based on certain criteria.
Each API call has different JSON data specifications as well. For instance:
my ($response, $data, $webservice);
if ($x == 1) {
$data = {
"item1" => "value1",
"item2" => "value2",
"item3" => "value3"
};
$webservice = "Do/Something";
$response = make_call($data, $webservice);
} elsif ($x == 2) {
$data = {
"item4" => "value4",
"item5" => "value5",
"item6" => "value6",
"item7" => "value7"
};
$webservice = "Do/Something/Else";
$response = make_call($data, $webservice);
} else {
warn "I don't know what to do!";
}
Is there a perl module that supplies a framework to manage webservices, how
they are called and the data that is passed to them? I checked CPAN but did't
find a solution.
Thanks,
Steve Dickinson