Thanks, I will test that out!
Jasha Joachimsthal-2 wrote: > > If you use a cocoon pipeline as source and don't cache it, you can make > the output of that pipeline depend on your request parameters. > > Jasha > >> -----Original Message----- >> From: dynnamitt [mailto:[email protected]] >> Sent: vrijdag 19 december 2008 13:57 >> To: [email protected] >> Subject: RE: http client as input module >> >> >> I can modify the WebService output from text to xml ... >> >> But the URL can change depending on div request params before >> the request is sent.. >> >> Is that possible with the XMLFileModule ? >> (I thought you had to define each source/url/file completely >> static inside of cocoon.xconf) >> >> I see there is a <cacheable>false</cacheable> option but I >> still need to alter my URL slightly on each call... >> >> >> >> kDM. >> >> >> Jasha Joachimsthal-2 wrote: >> > >> > Not that I know of then. If the response was XML you could >> have used >> > the XMLFileModule, but you're dealing with plain text. >> > However you could do it in flowscript, calling the function >> from the >> > sitemap, retrieve the response from the webservice in flow >> and do the >> > decision there whether you redirect or display a different page. >> > >> > >> > Jasha >> > >> >> -----Original Message----- >> >> From: dynnamitt [mailto:[email protected]] >> >> Sent: vrijdag 19 december 2008 13:02 >> >> To: [email protected] >> >> Subject: RE: http client as input module >> >> >> >> >> >> No. The the URL is an webservice >> >> It will contain data in the response-body. >> >> See my sample..... 'true' or 'false' >> >> >> >> kDM. >> >> >> >> >> >> >> >> Jasha Joachimsthal-2 wrote: >> >> > >> >> > I'm not sure what you try to achieve. If you want to do a >> >> select based >> >> > on the existence of an external URI, why don't you use the >> >> > resource-exists selector? >> >> > >> >> > <map:select type="resource-exists"> <map:when >> test="http://myurl"> >> >> > <map:redirect-to uri="somehwere"/> </map:when> <map:otherwise> >> >> > <!-- do something else --> >> >> > </map:otherwise/> >> >> > </map:select> >> >> > >> >> > >> >> > Jasha Joachimsthal >> >> > >> >> > [email protected] - [email protected] >> >> > >> >> > www.onehippo.com >> >> > Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam >> >> +31(0)20-5224466 >> >> > San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA >> >> > 94952-5100 +1 (707) 773-4646 >> >> > >> >> > >> >> > >> >> >> -----Original Message----- >> >> >> From: dynnamitt [mailto:[email protected]] >> >> >> Sent: vrijdag 19 december 2008 12:05 >> >> >> To: [email protected] >> >> >> Subject: http client as input module >> >> >> >> >> >> >> >> >> Do cocoon 2.1 have : >> >> >> >> >> >> 1) an input module that can perform an HTTP GET request >> >> >> >> >> >> ..and just return response-body as pure text. >> >> >> >> >> >> Sample use: >> >> >> .. >> >> >> <map:select type="parameter" > >> >> >> <map:parameter name="parameter-selector-test" >> >> >> value="{http:{my-url}}"/> >> >> >> >> >> >> <map:when test="true"> >> >> >> >> <!-- redirect --> >> >> >> </map:when> >> >> >> >> >> >> <map:otherwise> >> >> >> <!-- do >> somethin else --> >> >> >> </map:otherwise> >> >> >> >> >> >> </map:select> >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> http://www.nabble.com/http-client-as-input-module-tp21089499p2 >> >> >> 1089499.html >> >> >> Sent from the Cocoon - Users mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> 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] >> >> > >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/http-client-as-input-module-tp21089499p2 >> >> 1090190.html >> >> Sent from the Cocoon - Users mailing list archive at Nabble.com. >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> 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] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/http-client-as-input-module-tp21089499p2 >> 1090806.html >> Sent from the Cocoon - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> 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] > > > -- View this message in context: http://www.nabble.com/http-client-as-input-module-tp21089499p21091543.html Sent from the Cocoon - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
