[Chameleon] Problem with Catalog Search Widget

Huub Fleuren
Fri, 24 Oct 2003 15:15:15 +0100
Hi Hans & list

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)
reply, msg, hdrs = h.getreply()
print reply
print msg
print h.getfile().read()

        <Message>Unrecognized request.
Missing QUERY or DOCID</Message>

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

your truly,

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:
> 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 
> ''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 
> <,+Envelope%28%29%29&SCHEMA=ISO19119&ESN=f&WANTCONTENT=XML%20HTTP/1.0>'. 
> 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.