Forum Discussion
Conrad_Link_166
Nimbostratus
Oct 29, 2004problem using add_string_class_member
I'm having trouble using the new v9 add_string_class_member.
Here's the code snippet:
use SOAP::Lite;
import SOAP::Data 'name';
$soap = SOAP::Lite
-> uri('urn:iControl:LocalLB/Class')
-> readable(1)
-> proxy("https://$sHost:$sPort/iControl/iControlPortal.cgi");
$soap_response = $soap->add_string_class_member(
name('class_members' =>
[name('name' => $sClass), name('members' => [$sString])]
));
The error I'm getting is:
SOAP-ENV:Server Could not find element by name: name
What am I doing wrong here?
-Conrad
- Try this code out
$soap = SOAP::Lite -> uri('urn:iControl:LocalLB/Class') -> readable(1) -> proxy("https://$sHost:$sPort/iControl/iControlPortal.cgi"); $class_members = { name => $sClass, members => [$sString] }; $soap_response = $soap->add_string_class_member ( SOAP::Data->name(class_members => [$class_members)]) );
use SOAP::Lite + trace => qw(method debug);
- Conrad_Link_166
Nimbostratus
Still the same error. I tried your code snippet and got a different error. Here's the SOAP message:SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:namesp2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> xmlns:namesp1="urn:iControl:LocalLB/Class"> xsi:type="SOAP-ENC:Array"> .png images
-Conradxmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> SOAP-ENV:Server Exception caught in LocalLB::Class::add_string_class_member() Exception: Common::OperationFailed primary_error_code : 16908342 (0x01020036) secondary_error_code : 0 error_string : 01020036:3: The requested string class member (images .png) was not found.
- I'm working remotely today so I'm going to have to pass this one off to one of my developers later this afternoon. We'll get back to you as soon as we have something for you.
- Conrad_Link_166
Nimbostratus
BTW, how do I create the nice formatted "code" sections why I post. I can't find the "help" feature for these forums. - This is all new software and we are still working out the kinks. One of them is formatting of HTML/XML within posts. Hopefully this should be available soon.
I've verified that this is a bug in version 9.0.1 and have submitted a change request to development to get this addressed. It is my understanding that this will make it into 9.0.3.
I'll verify the release and post it back here when staff is back in the office on Monday.
-Joe
- Loc_Pham_101863Historic F5 Account
This is a known bug, and is already fixed in the upcoming 9.0.2 and 9.0.3 releases.
Loc
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