Forum Discussion
Help with LocalLB::NodeAddress set_connection_limit
Having looked at the API docs I am doing the following;
push @addresses, $address;
$limitsHash =
{
high => 0,
low => 1
};
push @limits, $limitsHash;
$soapAddresses = SOAP::Data->name(node_addresses => [@addresses]);
$soapLimits = SOAP::Data->name(limits => [@limits]);
$soapResponse = $s->{interface}->set_connection_limit($soapAddresses, $soapLimits);
checkResponse($soapResponse)
The above code is responding with the following error;
Fault Code: SOAP-ENV:Server, Fault String: Could not find element by name: high
Fault Code: SOAP-ENV:Server, Fault String: Could not find element by name: limits
I must be constructing the data structure wrong, and I have tried several combinations but no luck.
Any help would be appreciated.
3 Replies
- That is odd. I ran your code and it worked fine against my system. Can you include SOAP tracing to see what's going on and post the output as an attachment to this thread?
BTW, here's the code I used which worked fine:sub setConnectionLimit() { my ($node_address) = (@_); push @addresses, $node_address; $limitsHash = { high => 0, low => 1 }; push @limits, $limitsHash; $soapAddresses = SOAP::Data->name(node_addresses => [@addresses]); $soapLimits = SOAP::Data->name(limits => [@limits]); $soapResponse = $NodeAddress->set_connection_limit($soapAddresses, $soapLimits); &checkResponse($soapResponse); }
-Joe - Hayato_35605
Nimbostratus
Hi Joe,
Thanks for your confirmation. I have managed to get it working now. I am not certain what I was doing wrong.
Regards,
Hayato - No problem, glad to help!
-Joe
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
