From: Paul K. <pau...@ya...> - 2004-04-16 17:26:07
|
Mark, Could you send me the code that is not working for attributes? The thing is that ATTRIBUTES hash is checked only when you use UDDI syntax ("foo->bar" or "foo with bar"); in all other cases (when you use UDDI::Data or foo->attr({bar => 'foobar'})) ATTRIBUTES hash is not used -- you should be allowed to set/get any attributes you like. Are you trying to SET or GET them? I have few examples in the uddi test file that work with attributes. > Caveat (and a reason to believe the namespace has something to do > with this): UDDI:Lite's content model for v1 does not include > "description=>{lang=>2}". You'll have to add it to the > "ATTRIBUTES" section. (Should it retain its namespace? and, the > user access UDDI results using the namespace?) You may be right. I need to check how namespaces affect attribute handling. Still code snippet would be helpful. Best wishes, Paul. --- "Mark A. Fuller" <mar...@ea...> wrote: > Hi Paul, > > I got the version selector to work. I can switch between v1 and v2. > That's nice. I can harvest the v3 information and plug it in. > > I'm still having trouble with attributes. The v1 spec has a "lang" > attribute on the "description" element. The v2 spec has them on > "name" and "description" elements. (It's a way to have multiple > names and descriptions, one per language). I can't access that > attribute using either v1 or v2. > > I believe the problem may have something to do with the fact that > this attribute is namespaced to XML. (<xsd:attribute > ref="xml:lang"/>) The UDDI server returns this markup "<description > xml:lang="en">". > > Caveat (and a reason to believe the namespace has something to do > with this): UDDI:Lite's content model for v1 does not include > "description=>{lang=>2}". You'll have to add it to the > "ATTRIBUTES" section. (Should it retain its namespace? and, the > user access UDDI results using the namespace?) > > Mark > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO > of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Soaplite-devel mailing list > Soa...@li... > https://lists.sourceforge.net/lists/listinfo/soaplite-devel |