Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 70010 invoked from network); 9 Dec 2004 10:42:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Dec 2004 10:42:15 -0000 Received: (qmail 81052 invoked by uid 500); 9 Dec 2004 10:41:57 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 80964 invoked by uid 500); 9 Dec 2004 10:41:56 -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 Delivered-To: mailing list dev@cocoon.apache.org Delivered-To: moderator for dev@cocoon.apache.org Received: (qmail 70516 invoked by uid 99); 9 Dec 2004 10:37:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Subject: WebServiceProxyGenerator does not do redirects correctly From: Ramon Casha To: dev@cocoon.apache.org Content-Type: text/plain Organization: Malta Linux User Group Date: Thu, 09 Dec 2004 11:35:33 +0100 Message-Id: <1102588533.12786.6.camel@localhost1> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1-1mdk Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The commons HttpClient library does not automatically do redirects (see http://jakarta.apache.org/commons/httpclient/redirects.html). So, when the WebServiceProxyGenerator receives a redirect response, which has no body, it chokes on it. In my case I was trying to proxy a JSPWiki instance - the POST requests, which generate a 302 response, caused this error. It seems that the redirects have to be handled by the WebServiceProxyGenerator class. -- Ramon Casha Malta Linux User Group