cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <a...@prema.co.nz>
Subject RE: WebService Proxy
Date Tue, 01 Mar 2005 20:36:36 GMT
You might also want to take a look at the work that I did on calling SOAP
services from flowscript,
http://wiki.apache.org/cocoon/FlowAndWebServices.

By interacting with services in the flow layer you have more choices in how
the response from the
remote server is handled.

Cheers
Adam

> -----Original Message-----
> From: Mesut Ali Ergin [mailto:ergin@winlab.rutgers.edu]
> Sent: Wednesday, 2 March 2005 8:30 a.m.
> To: users@cocoon.apache.org
> Subject: Re: WebService Proxy
>
>
> Hi Andrea,
>
> If you are after a POST/GET request, you might use cinclude transformer
> as follows. Hope it helps.
>
> --
> Mesut Ali Ergin
> ergin@winlab.rutgers.edu
>
> Graduate Assistant, Rutgers Univ. WINLAB
> 73 Brett Road, Piscataway, NJ 08854, USA
>
>
> SITEMAP:
>
>             <map:match pattern="getThat.xml">
>                 <map:generate src="details.xml"/>
>                 <map:transform type="cinclude"/>
>                 <map:serialize type="xml"/>
>             </map:match>
>
> DETAILS.XML:
>
> <data xmlns:cinclude="http://apache.org/cocoon/include/1.0">
>
> <cinclude:includexml>
>     <cinclude:src>http://remoteServer/theTargetPage</cinclude:src>
>     <cinclude:configuration>
>     <cinclude:parameter>
>       <cinclude:name>method</cinclude:name>
>       <cinclude:value>POST</cinclude:value>
>     </cinclude:parameter>
>     </cinclude:configuration>
>     <cinclude:parameters>
>      <cinclude:parameter>
>          <cinclude:name>login</cinclude:name>
>          <cinclude:value>y</cinclude:value>
>      </cinclude:parameter>
>        ....
>     </cinclude:parameters>
> </cinclude:includexml>
>
> </data>
>
>
>
> Andrea Vagliengo wrote:
>
> > Hi all,
> > I want to forward a HTTP request from my cocoon application to a remote
> > (servlet) application, then while the former waits the last
> performs its
> > operations. I want to capture back the result of these computations mo
> > make them available for local cocoon styling.
> >
> > I have found some documentation about the WebServiceProxy
> Generator, but
> > I don't undestand HOW the "resulting XML content" is taken from the
> > remote webapp to the local cocoon webapp. There is no indication about
> > how to associate the particular proxy to the pointed resource, and
> > nothing about how the XML-based produced response is captured by cocoon
> > application.
> >
> > Does anybody of you can help me?
> >
> > Thanks a lot,
> > best regards
> >
> > Andrea
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message