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 bu...@apache.org on 2003/10/13 10:08:47 UTC
DO NOT REPLY [Bug 23761] New: -
Cannot change the Port's endpoint url from ServiceLocator
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23761>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23761
Cannot change the Port's endpoint url from ServiceLocator
Summary: Cannot change the Port's endpoint url from
ServiceLocator
Product: Axis
Version: current (nightly)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: WSDL processing
AssignedTo: axis-dev@ws.apache.org
ReportedBy: guillaume.sauthier@bull.net
Integration of Axis in a JSR-109 Implementation :
Missing feature of Axis Locator API : change the endpoint addresses of Service's
Ports.
Reason : In a J2EE component when the client is looking up for a Service
instance, he does not have to know the endpoint URL of the Service he want to
access. So the Service instance returned from the lookup call must be customized
by the container (set right endpoint URL for Ports of the Service).
When using directly org.apache.axis.client.Service class, customization can be
done easily. But when using generated classes (from WSDL2Java tool :
XXXServiceLocator) their is no way to configure ServiceLocator' Ports (each port
have an attribute port_address wich is final!).
My solution is to add setter methods for each ports of the Service.
YYYServiceLocator
for each port {
.setXXXEndpointAddress(URL endpoint);
}
.setEndpointAddress(QName port, URL endpoint);
here is the discussion on axis-dev mailing list :
http://marc.theaimsgroup.com/?l=axis-dev&m=106516993100787&w=2