Forum Discussion
Gavin_104961
Mar 21, 2011Nimbostratus
How can i use soapUI direct adding a pool
Hi Folks,
I am tring to use the soapUI (http://www.soapui.org/) add a pool with pool members, does anyone know how should i do change the following XML to add a pool by soap direct?
Thanks!
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pool="urn:iControl:LocalLB/Pool" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<soapenv:Header/>
<soapenv:Body>
<pool:create soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<pool_names xsi:type="urn:Common.StringSequence" soapenc:arrayType="xsd:string[]" xmlns:urn="urn:iControl"/>
<lb_methods xsi:type="urn:LocalLB.LBMethodSequence" soapenc:arrayType="urn:LocalLB.LBMethod[]" xmlns:urn="urn:iControl"/>
<members xsi:type="urn:Common.IPPortDefinitionSequenceSequence" soapenc:arrayType="urn:Common.IPPortDefinitionSequence[]" xmlns:urn="urn:iControl"/>
</pool:create>
</soapenv:Body>
</soapenv:Envelope>
- I haven't used soapUI before, so I'm not sure how the UI works. Your SOAP message is missing all of the parameter elements (they are all empty). Here's the trace of a create call using perl's SOAP::Lite for a pool named "foopool" with a lb method of "LB_METHOD_ROUND_ROBIN" and an initial member of "10.10.10.10:80".
< ?xml version="1.0" encoding="UTF-8"?> < soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> < soap:Body> < create xmlns="urn:iControl:LocalLB/Pool"> < pool_names soapenc:arrayType="xsd:string[1]" xsi:type="soapenc:Array"> < item xsi:type="xsd:string">foopool< /item> < /pool_names> < lb_methods soapenc:arrayType="xsd:string[1]" xsi:type="soapenc:Array"> < item xsi:type="xsd:string">LB_METHOD_ROUND_ROBIN< /item> < /lb_methods> < members soapenc:arrayType="soapenc:Array[1]" xsi:type="soapenc:Array"> < item soapenc:arrayType="xsd:anyType[1]" xsi:type="soapenc:Array"> < item> < address xsi:type="xsd:string">10.10.10.10< /address> < port xsi:type="xsd:int">80< /port> < /item> < /item> < /members> < /create> < /soap:Body> < /soap:Envelope>
- Gavin_104961NimbostratusThanks Joe, it works.
- Gavin_104961NimbostratusAnd here is my code, we can use SoapUI show iControl's power directly.
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