Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 77318 invoked from network); 6 Jun 2007 15:46:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 15:46:04 -0000 Received: (qmail 44228 invoked by uid 500); 6 Jun 2007 15:45:51 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 44174 invoked by uid 500); 6 Jun 2007 15:45:51 -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 44131 invoked by uid 99); 6 Jun 2007 15:45:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 08:45:51 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 08:45:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B95BC71419D for ; Wed, 6 Jun 2007 08:45:26 -0700 (PDT) Message-ID: <7106712.1181144726756.JavaMail.jira@brutus> Date: Wed, 6 Jun 2007 08:45:26 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Assigned: (AXIS2-2776) Providing soap address based on request Host header in user provided WSDL In-Reply-To: <719936.1181143406338.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Davanum Srinivas reassigned AXIS2-2776: --------------------------------------- Assignee: Deepal Jayasinghe > Providing soap address based on request Host header in user provided WSDL > ------------------------------------------------------------------------- > > Key: AXIS2-2776 > URL: https://issues.apache.org/jira/browse/AXIS2-2776 > Project: Axis 2.0 (Axis2) > Issue Type: Improvement > Components: kernel > Affects Versions: 1.3, 1.2, nightly > Environment: Tested on Linux, Tomcat 6.0.10, Sun JDK 5. Patch included should work in any environment as well. > Reporter: Luis Mariano Luporini > Assignee: Deepal Jayasinghe > Fix For: nightly > > Attachments: AxisService.java.patch > > > When Axis2 must respond to a ?wsdl request, there are three possible scenarios in which soap:address is calculated and given back inside the generated WSDL. > 1. User provided WSDL with parameter modifyUserWSDLPortAddress set to false > 2. User provided WSDL with parameter modifyUserWSDLPortAddress set to true > 3. On the fly WSDL generation > In case 1 the soap:address in the response is left unaltered and the original WSDL without modifications is given to the client. > In the other two cases (1 and 2), Axis2 is currently using the first available IP address in the server to complete (or replace) the hostname part of the generated soap:address in the WSDL. This is problem in environments when virtual hosting in using, and it represents a problem too when you have development, testing and production environment with different hostnames/ips, you are using a custom WSDL and this environments can be queried from different locations (Internet and Intranet for example). > For case 2, I've made the attached patch to AxisService.java. > This patch uses the provided info in Host header of the HTTP request (if provided) to generate the soap:address info inside WSDLs. > Case 1 is really different and there are different ways to solve it. I think I'd need more time to get to understand how all this works and then I'll be able to take at least a reasonable solution. There is a JIRA about this case but it's unassigned sadly: AXIS2-2720 . > Thanks. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org