Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 46736 invoked from network); 9 Jan 2008 09:37:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2008 09:37:09 -0000 Received: (qmail 49681 invoked by uid 500); 9 Jan 2008 09:36:53 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 49092 invoked by uid 500); 9 Jan 2008 09:36:50 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 49081 invoked by uid 99); 9 Jan 2008 09:36:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2008 01:36:50 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [212.103.193.198] (HELO mail.cardinis.com) (212.103.193.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2008 09:36:39 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.cardinis.com (Postfix) with ESMTP id 04F716005727 for ; Wed, 9 Jan 2008 10:36:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.cardinis.com Received: from mail.cardinis.com ([127.0.0.1]) by localhost (mail.ost.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DKhUO2nFBxrd for ; Wed, 9 Jan 2008 10:36:31 +0100 (CET) Received: from [10.2.1.52] (ws-mauro.ost.lan [10.2.1.52]) by mail.cardinis.com (Postfix) with ESMTP id CCF506005700 for ; Wed, 9 Jan 2008 10:36:31 +0100 (CET) Message-ID: <47849573.8020505@cardinis.com> Date: Wed, 09 Jan 2008 10:35:47 +0100 From: Mauro Molinari Organization: Cardinis Solutions S.p.A. User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: [Axis2] A way to make WSDL2Java for client send requests through HTTP GET instead of POST? Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello all! We are using Axis2 in a client environment to invoke a web service. Looking at org.apache.axis2.transport.http.HTTPSender.HTTPSender() I see that there can be a parameter set in the message context, created when invoking an operation, that specifies whether Axis2 should use an HTTP POST or HTTP GET method to send the request to the web service provider. By default, it seems that WSDL2Java generates ADB code that doesn't specify anything, so the default behaviour (line 77) of making an HTTP POST request is chosen. My question is this: is there a way to specify to WSDL2Java to generate client code that makes calls using HTTP GET method, or must I manually modify the generated code to add the appropriate value for org.apache.axis2.Constants.Configuration.HTTP_METHOD parameter to the message context for each operation invocation method? Thanks in advance. -- Mauro Molinari Software Developer mauro.molinari@cardinis.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org