Forum Discussion

safiyet_80777's avatar
safiyet_80777
Icon for Nimbostratus rankNimbostratus
Apr 01, 2011

compare class type

Hi,

 

 

I want to get class type of my class_name. For this, I use get_class_type. İt return an enum value for example CLASS_TYPE_STRING. But I can not compare return valıue and enum value. I use perl script.

 

 

$Class = SOAP::Lite

 

-> uri('urn:iControl:LocalLB/Class')

 

-> readable(1)

 

-> proxy("$sProtocol://$sHost:$sPort/iControl/iControlPortal.cgi");

 

 

 

 

 

find Group type

 

 

$soapResponse = $Class->get_class_type

 

(

 

SOAP::Data->name(class_names => [$sdata_group])

 

);

 

 

&checkResponse($soapResponse);

 

@member = @{$soapResponse->result};

 

 

if ( @member == SOAP::Data->name(class_type => CLASS_TYPE_STRING) ) waht should be*

 

{

 

.....

 

}

 

 

Thanks

 

No RepliesBe the first to reply