MapTools.org

[Chameleon] Problem with Catalog Search Widget

Huub Fleuren huub.fleuren@geodan.nl
Fri, 24 Oct 2003 15:15:15 +0100
Hi Hans & list



request="RS=XML&catalog=http://ceomap2.ccrs.nrcan.gc.ca/cgi-bin/cslt/wes/service_manager/catquery&QUERY=\"SRS='EPSG:4326'+AND+title+like+'%water%'+AND+Format='gif'+AND+ServiceType='Web+Mapping+Layer'+AND+Intersects(LatLongBoundingBox,+Envelope())&SCHEMA=ISO19119&ESN=f&WANTCONTENT=XML%20HTTP/1.0\""
server="/cgi-bin/cslt/wes/service_manager/catquery"
hostname="ceomap2.ccrs.nrcan.gc.ca"
h = httplib.HTTP(hostname)
h.putrequest("GET", server)
h.putheader("Content-type", "text/xml")
h.putheader("Content-length", "%d" % len(request))
h.putheader('Accept', 'text/xml')
h.putheader('Host', hostname)
h.endheaders()
h.send(request)
reply, msg, hdrs = h.getreply()
print reply
print msg
print h.getfile().read()

---
---
200
OK
<WMT_Exception>
        <Message>Unrecognized request.
Missing QUERY or DOCID</Message>
</WMT_Exception>

You're using the wrong request.
Correct it and maybe you'll quickly hop along again

your truly,
Huub

Hans Verlouw wrote:

> Hi list,
>
> While attempting to implement Chameleon's Catalog Search Widget I'm 
> running into problems.
> When I hit the search button (having typed a non-empty keyword) I get 
> a message in the search results area saying:
> Wrong DTD version. 1.1.0 or higher required
>
> I had a look at the URL being generated by the widget and after 
> submitting that one directly I get an error message saying:
>
> <PASTED-TEXT>
> The XML page cannot be displayed
> Cannot view XML input using style sheet. Please correct the error and 
> then click the Refresh button, or try again later.
>
> XML document must have a top level element. Error processing resource 
> 'http://ceomap2.ccrs.nrcan.gc.ca/cgi-bin/cslt/wes/service_manager/catquery?RS=XML&catalog=http://ceomap2.ccrs.nrcan.gc.ca/cgi-bin/cslt/wes/service_manager/catquery&QUERY=SRS='EPSG:4326'+AND+title+like+'%water%'+AND+Format='gif'+AND+ServiceType='Web+Mapping+Layer'+AND+Intersects(LatLongBoundingBox,+Envelope())&SCHEMA=ISO19119&ESN=f&WANTCONTENT=XML%20HTTP/1.0 
> <http://ceomap2.ccrs.nrcan.gc.ca/cgi-bin/cslt/wes/service_manager/catquery?RS=XML&catalog=http://ceomap2.ccrs.nrcan.gc.ca/cgi-bin/cslt/wes/service_manager/catquery&QUERY=SRS=%27EPSG:4326%27+AND+title+like+%27%25water%25%27+AND+Format=%27gif%27+AND+ServiceType=%27Web+Mapping+Layer%27+AND+Intersects%28LatLongBoundingBox,+Envelope%28%29%29&SCHEMA=ISO19119&ESN=f&WANTCONTENT=XML%20HTTP/1.0>'. 
>
> </PASTED-TEXT>
>
> The same problem occurs when I hit the search button at the Compusult 
> catalog demo.
> I asked Compusult what the problem might be, but as I didn't get an 
> answer from them in a couple of days and Chameleon generates the same 
> request, I post it to this list, hoping somebody here can help.
>
> Thanks in advance,
>
> Hans Verlouw



This archive was generated by Pipermail.