From: Thorsten Schöning Date: Tue, 20 Nov 2012 16:50:17 +0000 (+0100) Subject: Bug 385283: bz_webservice_demo.pl --product-name fails (Product.get_product no longer... X-Git-Tag: bugzilla-4.2.5~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=569fdbba8b711b7cbd13effc825265220d5a53c5;p=thirdparty%2Fbugzilla.git Bug 385283: bz_webservice_demo.pl --product-name fails (Product.get_product no longer exists) r/a=LpSolit --- diff --git a/contrib/bz_webservice_demo.pl b/contrib/bz_webservice_demo.pl index 104151d85f..3ef81489b9 100755 --- a/contrib/bz_webservice_demo.pl +++ b/contrib/bz_webservice_demo.pl @@ -287,20 +287,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 {