Forum Discussion
StainlessSteelR
Nimbostratus
Feb 04, 2004LBMethod
Hi there,
I'm trying to create a pool using the SOAP call 'create' in Java. The method signature from the iControl docs mentions the parameter lb_method which seems to want the LBMetho...
StainlessSteelR
Nimbostratus
Feb 04, 2004Hey Joe, cheers for the reply.
Here is my code...
String urn = "urn:iControl:ITCMLocalLB/Pool";
_call.setTargetObjectURI(urn);
_call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
_call.setSOAPMappingRegistry(_soap_registry);
_call.setMethodName("create"); //
IPPortDefinition[] ips = pool.getNodeIPs();
Vector params = new Vector();
params.addElement(new Parameter("pool_name", String.class, pool.getName(), null));
params.addElement(new Parameter("lb_method", LBMethod.class, LBMethod.LB_METHOD_ROUND_ROBIN, null));
params.addElement(new Parameter("members", IPPortDefinition[].class, ips, null));
_call.setParams(params);
The problem is that I can't find the LBMethod class in the ITCMLocalLB package.
S.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
