I discovered that changing my search from "johnny depp" to "depp" returns a
list of results. The problem, then, would seem to be the encoding of spaces
in my request parameters. When I submit my search form it converts the space
to a "+" in my browser. Examining the logs I see that they show " ", not "+"
on my failed searches. As mentioned before, in my sitemap if I change
"{request-param:actor}" to "johnny%20depp" I also get a list of results. So,
how do I ensure that my web service request is being sent with "%20" instead
of " " or "+"?Thanks, Jeff > -----Original Message----- > From: Jeff Ramsdale [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 11, 2003 12:45 AM > To: [EMAIL PROTECTED] > Subject: wsproxy and request parameters > > > I'm playing with the Amazon.com web service toolkit and Cocoon. > > Here's my sitemap snippete: > > <map:match pattern="doSearch.html"> > <map:generate name="wsproxy" > src="http://xml.amazon.com/onca/xml3?t=webservices-20&dev-t=[my dev > code]&ActorSearch={request-param:actor}&mode=dvd&type= > lite&p > age=1&f=xml" /> > <map:transform src="stylesheets/lite-data-to-html.xsl" /> > <map:serialize type="xhtml" /> > </map:match> > > When I request my page with > http://localhost:8888/Amazon/doSearch.html?actor=johnny+depp I > don't get any > results back from Amazon. When I replace "{request-param:actor}" in my > sitemap with "johnny%20depp" I get a bunch of results back. > > Any hints on why my parameters aren't being passed along? I'm on a pretty > recent CVS checkout of Cocoon. > > Thanks, > > Jeff > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
