Forum Discussion
Thomas_Schaefer
Nimbostratus
Oct 30, 2008add_address_class_member: When is typed, receives an error
Hello.
I have been struggling with an issue with using add_address_class_member.
I was having an issue with a program that consumes the web service so I decided to just use the raw XML and SoapUI to see what is happening.
When I send in the XML, I receive an error that the BigIP cannot convert the address string to an address. However, if I remove the type information from it works.
This is the error:
SOAP-ENV:Server
Exception caught in LocalLB::urn:iControl:LocalLB/Class::add_address_class_member()
Exception: Common:perationFailed
primary_error_code : 16908320 (0x01020020)
secondary_error_code : 0
error_string : 01020020:3: The text string cannot be converted to an IP address.
Here is the XML I sent that generated that error:
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="urn:iControl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
ftp_black_list
192.168.16.5
255.255.255.255
Note that if I remove the type information (xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:LocalLB.Class.AddressEntry[2]") from members, it works.
According to the SOAP generator at http://www.soapclient.com/soapclient.com/soaptest.html, this is correct XML so I am confused if there is an issue with the parser on the BigIP when using add_address_class_member.
Thanks,
Tom Schaefer
- Here is the trace from the SOAP::Lite perl client. The main difference I see is that you are specifying 2 entries for each of the arrays but only passing in one. That could be what's accounting for the cannot convert error.
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 192.168.16.5 255.255.255.255 ftp_black_list
- Thomas_Schaefer
Nimbostratus
Did that actually work. I submitted that XML in SoapUI and received an error.Invalid value for array encoding tag 'arrayType': anyType[ 1 ]
- Sorry about that.
- Thomas_Schaefer
Nimbostratus
Joe,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"> soapenc:arrayType="tns:LocalLB.Class.AddressClass[2]"> xsi:type="tns:LocalLB.Class.AddressClass"> ftp_black_list soapenc:arrayType="tns:LocalLB.Class.AddressEntry[2]"> xsi:type="tns:LocalLB.Class.AddressEntry"> 192.168.16.5 255.255.255.255
- Thomas_Schaefer
Nimbostratus
The Perl code did work. - Puli
Nimbostratus
Can you please point me to where the perl code is. - This was a customer that posted the reference to having perl code. I can easily whip you up something tomorrow though. I'll reply to this thread when I've got something up in the CodeShare.
- Here's some code that I just wrote that illustrates the Class.get_address_class_list, get_address_class, create_address_class, delete_class, add_address_class_member, and delete_address_class_member methods.
http://devcentral.f5.com/Wiki/default.aspx/iControl/PerlAddressClass.html
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