From d0dd0615af0d00464e819ef97328fb75d97afe23 Mon Sep 17 00:00:00 2001 From: Thorsten Schöning Date: Tue, 20 Nov 2012 17:47:06 +0100 Subject: Bug 385283: bz_webservice_demo.pl --product-name fails (Product.get_product no longer exists) r/a=LpSolit --- contrib/bz_webservice_demo.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib') diff --git a/contrib/bz_webservice_demo.pl b/contrib/bz_webservice_demo.pl index 906db7d2c..32b9e27a1 100755 --- a/contrib/bz_webservice_demo.pl +++ b/contrib/bz_webservice_demo.pl @@ -293,20 +293,20 @@ if ($bug_id) { =head2 Retrieving Product Information -Call C with the name of the product you want to know more -of. +Call C with the name of the product you want to know more of. The call will return a C object. =cut if ($product_name) { - $soapresult = $proxy->call('Product.get_product', $product_name); + $soapresult = $proxy->call('Product.get', {'names' => [$product_name]}); _die_on_fault($soapresult); $result = $soapresult->result; if (ref($result) eq 'HASH') { + $result = $result->{'products'}->[0]; foreach (keys(%$result)) { - print "$_: $$result{$_}\n"; + print "$_: $result->{$_}\n"; } } else { -- cgit v1.2.3-24-g4f1b