Return-Path: Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 57776 invoked by uid 500); 30 Jul 2003 15:27:49 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 57638 invoked from network); 30 Jul 2003 15:27:48 -0000 Received: from anchor-post-33.mail.demon.net (194.217.242.91) by daedalus.apache.org with SMTP; 30 Jul 2003 15:27:48 -0000 Received: from no-dns-yet.demon.co.uk ([195.173.84.2] helo=wellsserver.bluefinger.com) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 19hsrm-000BCQ-0X for users@cocoon.apache.org; Wed, 30 Jul 2003 16:27:50 +0100 Message-ID: From: "Grange, John" To: "'users@cocoon.apache.org'" Subject: Accessing servlet from same webapp as cocoon Date: Wed, 30 Jul 2003 16:27:41 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C356AF.1E0119C0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C356AF.1E0119C0 Content-Type: text/plain; charset="iso-8859-1" Hi, We have a servlet contained in the same webapp as cocoon. This servlet generates the xml for our pipeline. The only way we can get the file generator to access this servlet is to use the full url e.g. http://devapp1.locavista.com:8005/ReportsEngine/xml/report{requestQuery}& ;reportType=default This application will be deployed to different hosts and may use https on some, so we need some transparent way of accessing it, without having to change the protocol, hostname and port for each deployment. the full pipeline is shown below: John Grange Software Team Leader Tel: +44 (0) 1749 834922 Email: john.grange@bluefinger.com BlueFinger Limited Underwood Business Park, Wookey Hole Road, Wells, Somerset, BA5 1AF, UK Tel: +44 (0) 1749 834900 Fax: +44 (0) 1749 834902 Mobile: +44 (0) 7876 038058 web: www.bluefinger.com Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple Quay, BRISTOL. BS1 6EG. *** This E-mail contains confidential information for the addressee only. If you are not the intended recipient, please notify us immediately. You should not use, disclose, distribute or copy this communication if received in error. No binding contract will result from this e-mail until such time as a written document is signed on behalf of the company. BlueFinger Limited cannot accept responsibility for the completeness or accuracy of this message as it has been transmitted over public networks.*** ------_=_NextPart_001_01C356AF.1E0119C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Accessing servlet from same webapp as cocoon

Hi,

We have a servlet contained in the same webapp as = cocoon.  This servlet generates the xml for our pipeline.  = The only way we can get the file generator to access this servlet is to = use the full url e.g.

http://devapp1.locavista.com:8005/ReportsEngine/xml/re= port{requestQuery}&reportType=3Ddefault

This application will be deployed to different hosts = and may use https on some, so we need some transparent way of accessing = it, without having to change the protocol, hostname and port for each = deployment.

the full pipeline is shown below:

        =         =         <map:match = pattern=3D"roieer.*">
        =         =         =         <map:act = type=3D"request">
        =         =         =         =         <map:parameter name=3D"parameters" = value=3D"true"/>
        =         =         =         =         <map:generate type=3D"file" src=3D"http://devapp1.locavista.com:8005/ReportsEngine/xml/re= port{requestQuery}&amp;reportType=3Ddefault"/>

        =         =         =         </map:act>
        =         =         =         <!--<map:generate type=3D"file" = src=3D"docs/OutOfAreaReport.xml"/>-->
        =         =         =         <map:select type=3D"parameter">
        =         =         =         =         <map:parameter name=3D"parameter-selector-test" = value=3D"{1}"/>
        =         =         =         =         <map:when = test=3D"xml">
        =         =         =         =         =         <map:serialize type=3D"xml"/>
        =         =         =         =         </map:when>
        =         =         =         =         <map:when = test=3D"html">
        =         =         =         =         =         <map:transform = src=3D"stylesheets/html/roieer2html.xslt"/>
        =         =         =         =         =         <map:serialize type=3D"html"/>
        =         =         =         =         </map:when>
        =         =         =         </map:select>
        =         =         </map:match>

John Grange
Software Team Leader
Tel: +44 (0) 1749 834922
Email: john.grange@bluefinger.com

BlueFinger Limited
Underwood Business Park, Wookey Hole Road, Wells, = Somerset, BA5 1AF, UK
Tel: +44 (0) 1749 834900
Fax: +44 (0) 1749 834902
Mobile: +44 (0) 7876 038058
web: www.bluefinger.com

Company Reg No: 4209395 Registered Office: 2 Temple = Back East, Temple Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information = for the addressee only. If you are not the intended recipient, please = notify us immediately. You should not use, disclose, distribute or copy = this communication if received in error. No binding contract will = result from this e-mail until such time as a written document is signed = on behalf of the company. BlueFinger Limited cannot accept = responsibility for the completeness or accuracy of this message as it = has been transmitted over public networks.***

------_=_NextPart_001_01C356AF.1E0119C0--