axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23761] New: - Cannot change the Port's endpoint url from ServiceLocator
Date Mon, 13 Oct 2003 08:08:47 GMT
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

Mime
View raw message