Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 22883 invoked from network); 28 Feb 2006 10:57:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Feb 2006 10:57:10 -0000 Received: (qmail 14775 invoked by uid 500); 28 Feb 2006 10:57:01 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 14740 invoked by uid 500); 28 Feb 2006 10:57:01 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 14729 invoked by uid 99); 28 Feb 2006 10:57:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2006 02:57:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [192.6.10.60] (HELO tobor.hpl.hp.com) (192.6.10.60) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2006 02:57:00 -0800 Received: from localhost (localhost [127.0.0.1]) by tobor.hpl.hp.com (Postfix) with ESMTP id ADD4737088 for ; Tue, 28 Feb 2006 10:56:38 +0000 (GMT) Received: from tobor.hpl.hp.com ([127.0.0.1]) by localhost (tobor.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29309-01-7 for ; Tue, 28 Feb 2006 10:56:37 +0000 (GMT) Received: from kropotkin.hpl.hp.com (kropotkin.hpl.hp.com [15.144.59.2]) by tobor.hpl.hp.com (Postfix) with ESMTP id 8241C37071 for ; Tue, 28 Feb 2006 10:56:37 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by kropotkin.hpl.hp.com (Postfix) with ESMTP id 51D8518C8 for ; Tue, 28 Feb 2006 10:56:37 +0000 (GMT) Received: from kropotkin.hpl.hp.com ([127.0.0.1]) by localhost (kropotki [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10955-01-15 for ; Tue, 28 Feb 2006 10:56:33 +0000 (GMT) Received: from timmay.hpl.hp.com (timmay.hpl.hp.com [15.144.30.251]) by kropotkin.hpl.hp.com (Postfix) with ESMTP id 0BFA32BF0 for ; Tue, 28 Feb 2006 10:56:32 +0000 (GMT) Received: from [15.144.25.135] (chamonix.hpl.hp.com [15.144.25.135]) by timmay.hpl.hp.com (8.13.2/8.13.2) with ESMTP id k1SAuSow016916 for ; Tue, 28 Feb 2006 10:56:29 GMT Message-ID: <44042C5C.8010902@apache.org> Date: Tue, 28 Feb 2006 10:56:28 +0000 From: Steve Loughran User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: axis-dev@ws.apache.org Subject: Re: HTTP Redir with axis 1.3 References: <4cc0acdb0602270341j4838bfe5j@mail.gmail.com> In-Reply-To: <4cc0acdb0602270341j4838bfe5j@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPLB-IMAP-MailScanner-Information: Please contact the Helpdesk for more information X-HPLB-IMAP-MailScanner: Found to be clean X-HPLB-IMAP-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 5) X-Virus-Scanned: amavisd-new at kropotkin.hpl.hp.com X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Giuseppe Picone wrote: > I should implement an HTTP redirection (307 code) with Axis 1.3, both > from client side and from server side. > > I must do the redir with Axis because it depends from the SOAP content. > > > I need Howto and some tip. > > I'll appreciate also some example code > > Thanks > Giuseppe > I'm glad you are looking at 307 not 307, as ws-i forbids acting on 302. For the 307 message they say R1131 A CONSUMER MAY automatically redirect a request when it encounters a "307 Temporary Redirect" HTTP status code in a response. RFC2616 notes that user-agents should not automatically redirect requests; however, this requirement was aimed at browsers, not automated processes (which many Web services will be). Therefore, the Profile allows, but does not require, consumers to automatically follow redirections. For the server, you'd need a new axis servlet that caught a custom redirect exception, extracted the new path from the exception and generated the appropriate message. I dont think anyone has done this yet. For the client, I would target axis with the http-client library, as this invariably has better handling of http things than Sun's own library. you'd need to trace into the code to see what happens, and then either -silently put in a redirect -recognise a 307 response, and create a new redirect exception, containing the URL to use -have the client code catch and act on the response -add some loop detection code. After a finite number of redirects, you should give up trying. No sample code I'm afraid. -steve