You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jean-Claude Moissinac <mo...@enst.fr> on 2006/03/13 15:15:23 UTC
File generator and parameters
Hello
I'm working on a site which allows to process some external pages
I call something like:
http://mysite/processing/process1/an/external/url
and which is matched by a pipeline like this
<map:match pattern="process1/**/*">
<map:generate src="http://{1}/{2}"/>
<map:transform type="myTransform"/>
<map:serialize type="xml" />
</map:match>
which works fine if the URL has no parameters
but if the called URL has parameters, the generator seems to ignore it.
If the request is
http://mysite/processing/process1/an/external/url?param=12
I would like that the generator uses
http://an/external/url?param=12
as his src
Is there a solution to do it?
--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
Re: File generator and parameters
Posted by Jean-Claude Moissinac <mo...@enst.fr>.
On 3/13/06, Bertrand Delacretaz <bd...@apache.org> wrote:
>
> Le 13 mars 06 à 15:15, Jean-Claude Moissinac a écrit :
>
> > ...If the request is
> > http://mysite/processing/process1/an/external/url?param=12
> > I would like that the generator uses
> > http://an/external/url?param=12
> > as his src...
>
> I'm not sure if they do this out of the box, but the proxy generators
> found in the proxy block are fairly close - the
> WebServiceProxyGenerator does copy the request parameters, IIRTCC (If
> I Read The Code Correctly ;-)
Yes, thank you. a generator type="wsproxy" do the job.
Unfortunately their samples are disabled in the current release,
> you'll have to have a look at the source code under src/blocks/proxy
> - but that's not a lot of code. And the samples are still there as
> well, only disabled.
It is active in the 2.1.7 version
Hope this helps,
> -Bertrand
>
>
>
>
--
--
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE
E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58
http://shadok.enst.fr/jcm
Re: File generator and parameters
Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 13 mars 06 à 15:15, Jean-Claude Moissinac a écrit :
> ...If the request is
> http://mysite/processing/process1/an/external/url?param=12
> I would like that the generator uses
> http://an/external/url?param=12
> as his src...
I'm not sure if they do this out of the box, but the proxy generators
found in the proxy block are fairly close - the
WebServiceProxyGenerator does copy the request parameters, IIRTCC (If
I Read The Code Correctly ;-)
Unfortunately their samples are disabled in the current release,
you'll have to have a look at the source code under src/blocks/proxy
- but that's not a lot of code. And the samples are still there as
well, only disabled.
Hope this helps,
-Bertrand