Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 19604 invoked from network); 10 Aug 2007 05:07:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Aug 2007 05:07:39 -0000 Received: (qmail 359 invoked by uid 500); 10 Aug 2007 05:07:37 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 244 invoked by uid 500); 10 Aug 2007 05:07:37 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 233 invoked by uid 500); 10 Aug 2007 05:07:37 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 229 invoked by uid 99); 10 Aug 2007 05:07:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2007 22:07:37 -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.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2007 05:07:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D633D1A981A; Thu, 9 Aug 2007 22:07:15 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r564464 - /webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/description/AxisService.java Date: Fri, 10 Aug 2007 05:07:15 -0000 To: axis2-cvs@ws.apache.org From: amilas@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070810050715.D633D1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: amilas Date: Thu Aug 9 22:07:14 2007 New Revision: 564464 URL: http://svn.apache.org/viewvc?view=rev&rev=564464 Log: change the soap12 and http addresses according to the server address Modified: webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/description/AxisService.java Modified: webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/description/AxisService.java URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/description/AxisService.java?view=diff&rev=564464&r1=564463&r2=564464 ============================================================================== --- webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/description/AxisService.java (original) +++ webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/description/AxisService.java Thu Aug 9 22:07:14 2007 @@ -69,6 +69,8 @@ import javax.wsdl.*; import javax.wsdl.extensions.soap.SOAPAddress; import javax.wsdl.extensions.schema.Schema; +import javax.wsdl.extensions.soap12.SOAP12Address; +import javax.wsdl.extensions.http.HTTPAddress; import javax.wsdl.factory.WSDLFactory; import javax.wsdl.xml.WSDLReader; import javax.wsdl.xml.WSDLWriter; @@ -1105,8 +1107,20 @@ } else { ((SOAPAddress) extensibilityEle).setLocationURI(calculateEPRs(requestIP)[0]); } - //TODO : change the Endpoint refrence addess as well. + } else if (extensibilityEle instanceof SOAP12Address){ + if (requestIP == null) { + ((SOAP12Address) extensibilityEle).setLocationURI(getEPRs()[0]); + } else { + ((SOAP12Address) extensibilityEle).setLocationURI(calculateEPRs(requestIP)[0]); + } + } else if (extensibilityEle instanceof HTTPAddress){ + if (requestIP == null) { + ((HTTPAddress) extensibilityEle).setLocationURI(getEPRs()[0]); + } else { + ((HTTPAddress) extensibilityEle).setLocationURI(calculateEPRs(requestIP)[0]); + } } + //TODO : change the Endpoint refrence addess as well. } } } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org