WSDLDataLocator changes FQDN to IP address
------------------------------------------
Key: AXIS2-2720
URL: https://issues.apache.org/jira/browse/AXIS2-2720
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: kernel
Affects Versions: 1.2
Environment: Apache/Tomcat VirtualHost environment
Reporter: YG Park
WSDLDataLocator line 125 causes Axis2 to change the FQDN to an IP address when
accessed thru AxisServlet.
String[] exposedEPRs = theService.getEPRs();
Since getEPRs() method itself doesn't use any inforamation from the servlet, it
uses the local IP address by default.
This can be a problem in a virtualhost environment where multiple websites can
have their own Axis2 gateway.
When AxisServlet gets called with ?wsdl, it generates and saves a
EndpointReference in the message context (line 116).
So, a simple workaround for this case would be to change the above line to the
following
String[] exposedEPRs = new String[] {serviceURL};
although I think if a single service has multiple EPRs, then it'll generate a
wrong WSDL.. I don't know..
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]