Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 70137 invoked by uid 500); 13 Jul 2002 13:56:10 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 70126 invoked from network); 13 Jul 2002 13:56:10 -0000 From: "Vadim Gritsenko" To: Subject: RE: Cocoon as an application server Date: Sat, 13 Jul 2002 09:55:03 -0400 Message-ID: <000201c22a74$e3669900$0a00a8c0@vgritsenkopc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > From: Koen Pellegrims [mailto:koen.pellegrims@pandora.be] > > Yes, Cocoon can do all this (and a lot more)! > > If I were you I would take a closer look at XForms, the will provide you > with extensive form-handling capabilities, including complex validation > support. > For the database part, you can use either XSPs or the DatabaseActions. > > I would suggest you take the time to read the Cocoon-documentation and > browse through the samples, because everything you need is in there. > > Don't cling too much to the fact that you are using a PocketPC. If your > application sends data as an HTTP request, your server can handle it easily; > you could develop the entire server-side application using a normal browser > as a client and then switch over to the PocketPC... > > To answer you last question: the StreamGenerator generates XML data from an > incoming stream, who's length is not fixed. You won't be needing this, as > you are processing normal HTTP GET or POST requests. I think he may need either XForms (to get XML posted by client into DOM variable) or StreamGenerator (to do the same into SAX stream). When request is in DOM variable, you can do all kind of processing in XSP and output detailed error, or (detailed) success. To answer question what to do with SAX generated from StreamGenerator: you can process it. Either by XSLT, or by custom transformer, or by combination of several transformers (XSLT, SQL, LDAP, custom). Vadim > K. > > > -----Oorspronkelijk bericht----- > > Van: Leszek Gawron [mailto:ouzo@kompuart.pl] > > Verzonden: zaterdag 13 juli 2002 12:29 > > Aan: cocoon-users@xml.apache.org > > Onderwerp: Cocoon as an application server > > > > > > Still being lame to cocoon that is why next questions come (among > > of which the > > main is: how to do it ?) > > > > 0. I'd like to use cocoon as application server > > > > 1. The Pocket PC application needs to send some data to cocoon > > sever. This is > > quite structured and complex data. > > > > 2. Using XHTTPRequest component from MSXML library I'm sending > > this data to > > cocoon server. > > > > 3. Cocoon server processes the data and sends a XML response. > > > > and now the details: > > ad 1). Let's assume the request data is an order so if it was xml it > > might look somewhat like (taken from cocoon://samples/Order) > > > > > > 20259 > > WWWWWWW > > 6 > > 2001-05-05 00:00:00 > > 1 > > 11.6100 > > Thoms White > > Somestr. 48 > > Munster > > West > > 00000 > > Germany > > > > 20259 > > 51 > > 42.4000 > > 40 > > 0.0 > > > > > > 20259 > > 14 > > 18.6000 > > 9 > > 0.0 > > > > > > 20259 > > 7 > > 12.4000 > > 30 > > 0.0 > > > > > > WWWWWWW > > Thomas White > > Karin Black > > Marketing Manager > >
Somestr. 48
> > Munster > >
> >
> > > > I am not able to use SOAP because Pocket PC platform does not > > have a good one > > ( .NET Compact Framework is still beta and PocketSOAP won't even > > run on Emulator - I think they cannot be considered as a good basis > > for reliable software). > > > > The data does not have to be in that format. If not the question > > is : WHAT FORMAT ? > > > > ad 3) > > Using cocoon functionality (actions I think) I have to be > > able to parse client > > data, connect to database, validate data against database, > > do some database > > insertions and finally send some response to client > > now the questions: > > 1. IS IT POSSIBLE TO PARSE A REQUEST PARAMETER WITH XML PARSER? > > 2. HOW CAN I OBTAIN A CONNECTION FROM COCOON POOL ? > > 3. HOW CAN I SEND STRUCTURED XML RESPONSE USING COCOON ACTION? > > > > In third question I mean I have to provide a client with a > > complex error response if error occurs (for example there are > > only 5 units of product of id > > 14, so this cannot be only: order not taken ). I'd like to > > do it simple and > > scalable way ( it means no SAX handling if it's possible) > > > > My time is running and I still have no idea how to manage it > > all. I've nearly > > "mastered" providing pocket pc client with xml data provided by > > cocoon querying databases and it works like a charm. The only > > thing i need now is to > > provide cocoon with data it will be able to understand and process. > > > > the last question is : WHAT IS STREAM GENERATOR FOR ? IT CAN > > XML'IZE A REQUEST > > PARAMETER BUT HOW CAN I PROCESS THIS XML TREE? > > > > I would do anything with the simplest example that solves my problem > > ouzo > > -- > > __ > > | / \ | Leszek Gawron // \\ > > \_\\ //_/ ouzo@vip.net.pl _\\()//_ > > .'/()\'. Phone: +48(600)341118 / // \\ \ > > \\ // recursive: adj; see recursive | \__/ | --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: