Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 67903 invoked from network); 1 Jun 2007 13:57:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 13:57:28 -0000 Received: (qmail 80232 invoked by uid 500); 1 Jun 2007 13:57:30 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 80172 invoked by uid 500); 1 Jun 2007 13:57:30 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 80161 invoked by uid 99); 1 Jun 2007 13:57:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 06:57:30 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of peter.hunsberger@gmail.com designates 66.249.82.229 as permitted sender) Received: from [66.249.82.229] (HELO wx-out-0506.google.com) (66.249.82.229) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 06:57:24 -0700 Received: by wx-out-0506.google.com with SMTP id s14so456094wxc for ; Fri, 01 Jun 2007 06:57:03 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hyFx2le6T06tLqDdvFfX0crmDSyqPhW/abaL2WvkWwFTa7L2/8T86OvsPFUAio7dSnJCDGlirhAe969Q8mYP3kT2YP5fVzR3pK8bCqbAPb5u8dEUTk0xX/SHhIdV4AUqshqOrk4WpTjfd4pzAXzavzVkdwbgA6q6Aj+PYHYzrU0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=t2GKQPbFucRY8ZN1ANFLD0r98nACjDVypH4hVTqQurGcfV5yO8jhFCMCNQsxwWso+qTYCm41a4kLPKXqH7k0vedog76tZeiUZElZbMogTH3/JgHHkK30x20d0jYdP7NC1R4oO26MF/DQVMIPjX5n8taDMmlcFD/TN/5YKsNc1wQ= Received: by 10.70.68.11 with SMTP id q11mr2846356wxa.1180706223814; Fri, 01 Jun 2007 06:57:03 -0700 (PDT) Received: by 10.70.124.12 with HTTP; Fri, 1 Jun 2007 06:57:03 -0700 (PDT) Message-ID: Date: Fri, 1 Jun 2007 08:57:03 -0500 From: "Peter Hunsberger" To: dev@cocoon.apache.org Subject: Re: More problems with implementing servlet services In-Reply-To: <465F7B87.9020101@reverycodes.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4640A55B.8070200@tuffmail.com> <464C3C2D.4070405@nada.kth.se> <464C4DB6.3030209@gmx.de> <464C606F.2050600@nada.kth.se> <464EEC40.2040105@gmx.de> <464EED50.30904@apache.org> <464EF656.4010902@gmx.de> <464EFDA8.9060606@apache.org> <465F7B87.9020101@reverycodes.com> X-Virus-Checked: Checked by ClamAV on apache.org On 5/31/07, Vadim Gritsenko wrote: > Grzegorz Kossakowski wrote: > > Joerg Heinicke pisze: > >> On 19.05.2007 14:28, Grzegorz Kossakowski wrote: > >> > >> One more reason to always put the service URL into the src attribute > >> as you don't need to discuss and differentiate between GET and POST. > > +1 > > > Yes I have to explain meaning of the "postData" parameter and its use. > > Really, POST and GET are conceptually different beasts and I believe we > > should not try to hide this differences anyhow. > > I don't buy it. What about PUT? DELETE? TRACE? OPTIONS? HEAD? Is every method > going to get its own syntax and its own generator type? GetGenerator, > PostGenerator, DeleteGenerator? It does not make any sense to me. Request is a > request is a request. +1 (I've already had this discussion with Grzegorz). I agree there is absolutely no reason to treat POST and GET as "conceptually different beasts". They are conceptually identical; they differ only in the implementation details of how they pass data to the server. > Request method is just one single piece of information in > the request and it is not making conceptual difference. Ideally all request > method should be treated equally. In the case of this service generator, it just > means it should take parameter specifying what request method to use... what > headers to set... what data to include in the body (notice how I avoided the > word 'post' here - cause it could be 'put', or any other method)... But the src > attribute of generator is url of the service - everything else is an optional > parameter: request method defaults to GET, request body by default is empty, etc. > > Vadim > -- Peter Hunsberger