Forum Discussion
zak_thompson_86
Nimbostratus
Jan 22, 2008add_address_class_member.. not adding?
So using php and soap.
I can grab the classes display them. print ou their contents. all good.. but however.. can't add anything.. try {
$client = new SoapClient($wsdl,array('location'=>$loc...
Jan 22, 2008
The issue you are having is that the add_address_class_member takes an array of structures defining the address class entries you want to add. You are passing in a scalar string. The server is looking for an array and when you pass a scalar, the array conversion doesn't find an array definition and interprets it as an empty array and essentially performs a no-op.
The add_address_class_member() method is defined as:
struct LocalLB::Class::AddressEntry {
string address;
string netmask;
};
struct LocalLB::Class::AddressClass {
string name;
AddressEntry [] members;
};
LocalLB::Class::add_address_class_member(
in LocalLB::Class::AddressClass [] class_members
);
You will need to package up and array of AddressClass items, one for each Class you are adding addresses to. Within each of those AddressClass items, you'll need to include an array of AddressEntry structures that contain the address and netmasks of the entries you want to add.
It looks like you are building the arrays, but in your call to add_address_class_member() you are passing in a character string.
Hope this helps...
-Joe
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