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 "YG Park (JIRA)" <ji...@apache.org> on 2007/05/27 07:17:16 UTC

[jira] Created: (AXIS2-2720) WSDLDataLocator changes FQDN to IP address

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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2720) WSDLDataLocator changes FQDN to IP address

Posted by "Srinath Perera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinath Perera updated AXIS2-2720:
----------------------------------

    Priority: Blocker  (was: Major)

> 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
>            Assignee: Deepal Jayasinghe
>            Priority: Blocker
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2720) WSDLDataLocator changes FQDN to IP address

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-2720.
--------------------------------------

    Resolution: Fixed

Please add the following parameter into axis2.xml 
and then everything will work fine.

<parameter name="hostname" locked="true">myhost.com</parameter>

> 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
>            Assignee: Deepal Jayasinghe
>            Priority: Blocker
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-2720) WSDLDataLocator changes FQDN to IP address

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas reassigned AXIS2-2720:
---------------------------------------

    Assignee: Deepal Jayasinghe

> 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
>            Assignee: Deepal Jayasinghe
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org