Forum Discussion
keegan_morrison
Nimbostratus
Jun 09, 2008Generating IPPortDefinition in php
Hi. I'm stuck on something that seems so simple, yet has befuddled me for quite some time. Im trying to use LocalLB.PoolMember.wsdl to get statistics (specifically current connections) of a specific n...
mpatel_63830
Nimbostratus
Oct 21, 2008Not sure if you are still having the problem, or if you came up with another way to fix the problem, but I had a similar problem while trying to create pools using php. I had to wrap the entire sequence in an array to get it to work:
$p['pool1'] = array(array(array('address'=>'192.168.1.1','port'=>80)));
$p['pool2'] = array(array(array('address'=>'192.168.1.2','port'=>80)));
foreach ($p as $k => $v) {
try {
$client->create(array($k),array(0),$v);
} catch (Exception $e) {
echo $e->getMessage();
}
}
so the "IPPortDefinition[][]" parameter when you pass it to the soapclient looks like:
Array
(
[0] => Array
(
[0] => Array
(
[address] => 192.168.1.1
[port] => 80
)
)
)
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
