Just thought that people might want to know what result I got to in the end. I ended up writing my own transformer that takes the xml from the pipeline posts it to a certain address then replaces the xml in the pipeline with the result of the post.
Not sure if anyone else would want this code but if people would be interested I would be willing to clean it up a bit and post it. Cheers Bryce -----Original Message----- From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]] Sent: 02 May 2002 11:14 To: [EMAIL PROTECTED] Subject: RE: Request to external XML server in pipeline In the case of a POST, you can use the session transformer (only available in the latest CVS) instead of the cinclude transformer: <pipeline> <reguest generator> <stylesheet - builds cinclude statements with the params> <cinclude transformer> <stylesheet for output> </pipeline> The session transformer is able to use post for HTTP requests. The following XML should get something from http://itsunshine/test by using POST: <data xmlns:session="http://ocoon.apache.org/session/1.0"> <session:include> <session:connection type="uri"> <!-- THE URI --> <session:target>http://itsunshine/test</session:target> <!-- Setting POST --> <session:config> <session:param> <session:name>method</session:name> <session:value>POST</session:value> </session:param> </session:config> <!-- Setting parameters --> <session:params> <session:param> <session:name>message</session:name> <session:value>Hi there</session:value> </session:param> </session:params> </session:connection> </session:include> </data> But I must confess that I'm not sure if this works with the lastest CVS, as we changed the source resolving - I will have a look at it asap. HTH Carsten > -----Original Message----- > From: Matthew Langham [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 02, 2002 11:47 AM > To: [EMAIL PROTECTED] > Subject: RE: Request to external XML server in pipeline > > > Hi Bryce, > > here's one way of doing this: > > <pipeline> > <reguest generator> > <stylesheet - builds cinclude statements with the params> > <cinclude transformer> > <stylesheet for output> > </pipeline> > So you use the cinclude transformer to fetch the external data. Check out > the cinclude documentation for more details. > > Matthew > > -- > Open Source Group sunShine - Lighting up e:Business > ================================================================= > Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn > Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de > Weblogging at: http://www.need-a-cake.com > Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352 > ================================================================= > > > > -----Original Message----- > From: Ewing, Bryce [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 02, 2002 11:27 AM > To: '[EMAIL PROTECTED]' > Subject: Request to external XML server in pipeline > > > Hi, > > Just started working with Cocoon and I have a question in regards > to reading > XML content from a XML server probably within a pipeline. What I have at > present is a backend XML server that given a XML formatted packet > does some > processing, including database access, legacy etc. then replies with an > answer XML packet. This is totally outside of Cocoon. > > What I have inside Cocoon at present is an html form that has the request > parameters that would make up the inwards XML packet. I have a pipeline > that has a request generator, then a xslt transformation to get > the XML into > the required format. What I would like to do is post this packet > to the XML > server, with the reply packet being available to the pipeline, maybe a > transformer that changes the input XML to the output via the post. Then > process this reply XML packet to create the next HTML page. > > If anyone has any help on this, or can think of a better way this could be > performed your help would be greatly appreciated. > > Cheers > Bryce > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>