softlayer / softlayer-api-perl-client

A set of Perl libraries that assist in calling the SoftLayer API.
Other
11 stars 5 forks source link

The "SoftLayer_Billing_Order_Quote::getRecalculatedOrderContainer" method fails with perl client #4

Open MiguelHigorre opened 9 years ago

MiguelHigorre commented 9 years ago

The "SoftLayer_Billing_Order_Quote::getRecalculatedOrderContainer" method fails and raises the following exception when is used with the perl client

"SOAP-ENV:Client , Missing parameter"

Please try the following code: use SoftLayer::API::SOAP; use strict; use Data::Dumper;

my $apiUsername = 'set-me'; my $apiKey = 'set-me'; my $quoteId = 123456; my $client = SoftLayer::API::SOAP->new('SoftLayer_Billing_Order_Quote', $quoteId, $apiUsername, $apiKey); my $order_templates = $client->getRecalculatedOrderContainer();

if ($order_templates->fault) { die "Unable to retrieve quotes. " . $order_templates->faultcode . " , " .$order_templates->faultstring; }