Re: [PyWrapper-users] Question regarding results
Status: Alpha
Brought to you by:
jatorre
From: Renato De G. <re...@cr...> - 2006-06-09 11:24:39
|
Hi Jose, It's difficult to tell what's going on without looking at the view definition and also without knowing about the underlying database mapping. But I would guess that your definition of element <ViewSpecies> probably lacks an attribute: maxOccurs=3D"unbounded". Hope this helps, -- Renato On 7 Jun 2006 at 19:41, Jose Cuadra wrote: > > Hello, > > Currently I installed and ran some queries on the pywrapper. > I managed to install the pywrapper and did all the configuring to map > it to a little test-database I created. > > My question, for the moment is that when the pywrapper returns me the > results, they come in this format: > > <search> > <ViewSpecies> > <ViewName>Aspasia principissa</ViewName> > <ViewName>Balantiopteryx plicata</ViewName> > <ViewName>Caluromys derbianus</ViewName> > <ViewKingdom>Plantae</ViewKingdom> > <ViewKingdom>Animalia</ViewKingdom> > <ViewKingdom>Animalia</ViewKingdom> > <ViewHabitat>Bosques muy humedos.</ViewHabitat> > <ViewHabitat>Bosques secos, bosques de > galeria.</ViewHabitat> > <ViewHabitat>Bosques humedos, secos</ViewHabitat> > </ViewSpecies> > <summary start=3D"0" totalMatched=3D"7"next=3D"5" /> > </search> > > > I was reading the Tapir Wiki (the examples) and I saw that the data > should not be returned that way, instead it should be returned > following the clear separation between related elements, something > like this maybe: > > <search> > <ViewSpecies> > <ViewName>Aspasia principissa</ViewName> > <ViewKingdom>Plantae</ViewKingdom> > <ViewHabitat>Bosques muy humedos.</ViewHabitat> > </ViewSpecies> > <ViewSpecies> > <ViewName>Balantiopteryx plicata</ViewName> > <ViewKingdom>Animalia</ViewKingdom> > <ViewHabitat>Bosques secos, bosques de galeria.</ViewHabitat> > </ViewSpecies> > <ViewSpecies> > <ViewName>Caluromys derbianus</ViewName> > <ViewKingdom>Animalia</ViewKingdom> > <ViewHabitat>Bosques humedos, secos</ViewHabitat> > </ViewSpecies> > <summary start=3D"0" totalMatched=3D"7"next=3D"5" /> > </search> > > I=B4ve had more experience with the DiGIR requests/responses syntax, > and this is why I am asking this question. > I would really appreciate if you could clarify to me if this is a > pywrapper issue, a protocol issue, or an issue with any configuration > I did badly on my side, like for example a bad-defined view. > > Thanks for the help, > Jose Cuadra |