|
||||
[Chameleon] Problem interpreting results from CatalogSearch widgetPaul Spencer spencer@dmsolutions.caTue, 04 Nov 2003 19:13:56 -0500
|
Hans, there may have been some change to the XML object code that we use for interpreting the response, I will try to check it. There is a potential issue with how we have implemented this widget, it is not particularly efficient and will timeout on larger requests ... well, almost any request with more than 3-4 results I think. There are almost certainly opportunites to improve this, specifically with not requesting full results until a layer is selected, for instance. Cheers, Paul Hans Verlouw wrote: > I have a problem interpreting results from the Catalog Search widget. > Don't know if it's a Chameleon problem or PHP problem, > but when I get results from the catalog server > ($oXMLDoc->searchResponse->value->searchStatus->attributes['numberOfRecords'] > > 0) > I cannot retrieve the subelements of array ISO19119 in the XML doc. > The core of the original code goes like: > > $nbIso = > count($oXMLDoc->searchResponse->value->searchResults->value->ISO19119); > for($i=0; $i < $nbIso; $i++) > { > $oRes =& > $oXMLDoc->searchResponse->value->searchResults->value->ISO19119[$i]; > $szLayerTitle = $oRes->value->citation->value->title->value; > echo $szLayerTitle; > } > > So I can interprete the response I get up to the level of > $oXMLDoc->searchResponse->value->searchStatus > but not deeper. > My query was fulll response, so URL parameter ESN=f > Can somebody tell me what is wrong here? > > Thanks in advance, > > Hans Verlouw > ------------------------------------- > Geodan SDT b.v. > Buitenhaven 27-A > 5211 TP 's-Hertogenbosch (NL) > ------------------------------------- > Tel: +31 (0)73 - 692 5151 > Fax: +31 (0)73 - 692 5150 > ------------------------------------- > Postadres / mailing address > President Kennedylaan 1 > 1079 MB Amsterdam (NL) > ------------------------------------- > E-mail: Hans.Verlouw@Geodan.nl > Website: www.geodan.nl <http://www.geodan.nl/> > Disclaimer: www.geodan.nl/disclaimer <http://www.geodan.nl/disclaimer> > ------------------------------------- > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| -----------------------------------------------------------------
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |