Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 11986 invoked from network); 18 Mar 2004 00:38:23 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Mar 2004 00:38:23 -0000 Received: (qmail 80674 invoked by uid 500); 18 Mar 2004 00:38:00 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 80389 invoked by uid 500); 18 Mar 2004 00:37:59 -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 80373 invoked from network); 18 Mar 2004 00:37:58 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by daedalus.apache.org with SMTP; 18 Mar 2004 00:37:58 -0000 Received: (qmail 20261 invoked by uid 65534); 18 Mar 2004 00:38:05 -0000 Received: from a183069.studnetz.uni-leipzig.de (EHLO gmx.de) (139.18.183.69) by mail.gmx.net (mp025) with SMTP; 18 Mar 2004 01:38:05 +0100 X-Authenticated: #3483660 Message-ID: <4058EF86.4010002@gmx.de> Date: Thu, 18 Mar 2004 01:38:30 +0100 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: de-de, de, en-us, en-gb, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Concerning a) Woody bindings, b) Web Service publishing using existing Generator? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 17.02.2004 19:05, Ulf Sahlin wrote: > 1. I've been playing around a little with Woody. From my short usage > experience, it looks very promising for form management. My business logic > is implemented in EJB. Is there some load/save binding framework for EJB > available? Also, I have implemented an XML representation of my Entity Bean > data using a Cocoon Generator. Is there some way I could use the XML > representation work already put in place there, by feeding Woody with data > from a Generator? I don't know if I'm right on the mechanics of Cocoon here, > please let me know if I'm way off. I know I have to handle saving validated > form data anyway so maybe using a Generator isn't the right way to go (e.g. > I cannot avoid using Woody's binding stuff?). You can also bind to XML, writing some stuff in flow including the storing of the pipeline output (that pipeline with your generator) into DOM should be no problem. But I don't understand why don't bind directly to beans? That's at least what I do though I don't use enterprise beans. > 2. I would like to publish my own Web Services, based on my existing work in > Generators (basically, have the SOAP/Axis Reader getting calls using > existing pipeline structure). Is there some way I can read the data from the > SOAP XML structure (i.e. retrieve the parameters, encapsulated in SOAP XML, > to my Generator EJB Finder call)? I'm thinking maybe I could set the > Generator parameters directly in the pipeline rather than using > request.getParameter within the Generator (thereby de-coupling it from > web-based calls only). Based on the call type maybe I could use a common > Generator to create the XML (*.html = set parameters using > request.getParameter, *.service = set parameters using ????). > > Pseudo-sitemap below (my guess is it's not very correct syntax): > > > > value="{request.getParameter('myparam')}"/> This can be done by input modules. > > > > > > > > > value="{axis.getParameter('/soap:Envelope/soap:Body/myparam')}"/> If you store this XML structure somewhere the XModuleSource should work: http://wiki.cocoondev.org/Wiki.jsp?page=XModuleSource. Joerg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org