From: Mark A. F. <mar...@ea...> - 2004-04-14 16:33:16
|
Paul, following up to my previous email, I tried the UDDI result access described in the POD. I get this error message: "Can't locate object method "businessInfos" via package "UDDI::SOM" at testuddi2 line 19." This part (accessing results using element names) is the thing I'd like to understand. Where is the $SOM->element-name functionality supposed to come from? Here's the code I used: ================================== use UDDI::Lite +trace=>[qw(headers fault debug)]; my $uddi = UDDI::Lite -> on_debug(sub{print@_}) -> proxy('http://localhost:8080/uddi/inquiry'); my $list = $uddi->find_business(name => 'D%'); my $bis = $list->businessInfos; for ($bis->businessInfo) { my $s = $_->serviceInfos->serviceInfo; print $s->name, # element $s->businessKey, # attribute "\n"; } ================================= |