Forum Discussion
E_Lenny_Brown_1
Nimbostratus
Oct 05, 2004Odd request
In my hard-headed attempt to implement an iControl framework in python (perl gives me headaches and java is on the to-do list) I have run into a minor difficulty.
In implementing the IT...
Oct 05, 2004
I'm sorry but I can't help you with Python, but I can get you the SOAP Request:
struct VirtualServerAttribute {
IPPortDefinition source,
IPPortDefinition translated,
IPPortDefinition [] depends,
long ratio,
EnableStatus status,
StatColor state
};
void ITCMGlobal::Wideip::add_pool_virtual_server(
in String wideip_name,
in String pool_name,
in VirtualServerAttribute vs
);
If invoking the following code (from C):
ITCMGlobalLBVirtualServerAttribute vsAttr = new ITCMGlobalLBVirtualServerAttribute();
vsAttr.source = new ITCMGlobalLBIPPortDefinition();
vsAttr.source.addr = "10.10.10.10";
vsAttr.source.port = 80;
vsAttr.translated = new ITCMGlobalLBIPPortDefinition();
vsAttr.translated.addr = "20.20.20.20";
vsAttr.translated.port = 80;
vsAttr.depends = new ITCMGlobalLBIPPortDefinition[0];
vsAttr.ratio = 1;
vsAttr.status = 0;
vsAttr.state = 0;
iWideip.add_pool_virtual_server(sWideip,sPool, vsAttr);
It will produce the following SOAPRequest:
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="urn:iControl"
xmlns:types="urn:iControl/encodedTypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
my_wideip
my_pool
1
0
0
80
20.20.20.20
80
10.10.10.10
You may have to move around those idrefs to make sense of this.
Hope this helps...
-Joe
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
