You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Per Kreipke <pe...@onclave.com> on 2000/09/18 17:20:32 UTC

RE: How to Call Servlets, CGIs on your server and other servers;Servlet Chaining

Uli,

Can you share this code with the rest of us?

> On Fri, 15 Sep 2000, Robin Green wrote:
>
> > What you DON'T do is use ProducerFromRequest - that's a
> security risk, as
> > noted in the recent Security Advisory which I can email to
> anyone who wants
> > it (it's also in the mail archives).
>
> I've taken what used to be the ProducerFromRequest code and stuffed it
> into a new class and made a servlet out of it. That way I can post an XML
> doc to this servlet and it passes the XML doc on to cocoon, which delivers
> the result directly to the client, i.e. not going through the servlet
> again on the way back.
>
> This is a very simple solution if you have several apps communicating with
> each other via XML. Of course you can use SOAP for this, but it is a bit
> overkillish in my mind. Our internal apps simply communicate via XML and
> the servlet and cocoon are the mediators, if the XML sent by one app needs
> to be transformed first, before sending it to the other app.
>
> For example, we have an app producing its results in XML and we can send
> the XML to cocoon and get back a PDF with the result nicely formatted for
> archival and printing.
>
> Ulrich
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


Re: How to Call Servlets, CGIs on your server and other servers;ServletChaining

Posted by Ulrich Mayring <ul...@denic.de>.
Per Kreipke wrote:
> 
> Uli,
> 
> Can you share this code with the rest of us?

Sure, find it in the attachment. You'll also need
ProducerFromRequest.java and CocoonServletRequest.java from the standard
cocoon distribution. And make sure no-one unauthorized can access this
servlet.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung