You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by am...@apache.org on 2007/08/10 07:07:15 UTC
svn commit: r564464 -
/webservices/axis2/branches/java/1_3/modules/kernel/src/org/apache/axis2/description/AxisService.java
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