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 "Dietmar Gaertner (JIRA)" <ji...@apache.org> on 2008/05/06 14:00:55 UTC

[jira] Created: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

WSDL port address is not correctly generated for machines having multiple network interfaces
--------------------------------------------------------------------------------------------

                 Key: AXIS2-3784
                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.3, 1.4
         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
            Reporter: Dietmar Gaertner


WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.

For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
...
<wsdl:service name="Version">
	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
<soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
</wsdl:port>
	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
<soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
</wsdl:port>
	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
<http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
</wsdl:port>
</wsdl:service>
...

This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.

I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
...
<wsdl:service name="Version">
	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
<soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
</wsdl:port>
	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
<soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
</wsdl:port>
	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
<http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
</wsdl:port>
</wsdl:service>
...

Regards, Dietmar




-- 
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-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

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

Boris Milanov updated AXIS2-3784:
---------------------------------

    Attachment:     (was: AXIS2-3784.patch)

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>         Attachments: AXIS2-3784.patch
>
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Boris Milanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641396#action_12641396 ] 

Boris Milanov commented on AXIS2-3784:
--------------------------------------

Hi Nandana,

I checked out the trunk and did some testing but I came across a problem.
If I set the "hostname" parameter in axis2.xml, it does not have effect on the generated wsdl port address.

Is this intentional?

Thanks,
Boris

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Boris Milanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723597#action_12723597 ] 

Boris Milanov commented on AXIS2-3784:
--------------------------------------

I can provide a patch for the issue.

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

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

Boris Milanov updated AXIS2-3784:
---------------------------------

    Attachment: AXIS2-3784.patch

This patch makes sure that hostname from the request is used when printing a user-defined wsdl.

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>         Attachments: AXIS2-3784.patch
>
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641748#action_12641748 ] 

Nandana Mihindukulasooriya commented on AXIS2-3784:
---------------------------------------------------

Hi Boris,
      Fixed this in the trunk and you take an update and check ?

thanks,
nandana

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Juan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628648#action_12628648 ] 

Juan commented on AXIS2-3784:
-----------------------------

Thanks for your reply, does this mean that once I check out the code I have to compile and then use that jar created?

I've been looking at other posts, I found something interesting that worked but it's more of a hack.  In the axis2.xml file, I added a parameter
<parameter name="hostname" locked="true">(dev server dsn)</parameter> and this will take the port from the URL so I dont worry about it.

Where can I find your committed code btw?

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

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

Boris Milanov updated AXIS2-3784:
---------------------------------

    Attachment: AXIS2-3784.patch

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>         Attachments: AXIS2-3784.patch
>
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Dietmar Gaertner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596423#action_12596423 ] 

Dietmar Gaertner commented on AXIS2-3784:
-----------------------------------------

Hi Sanka,

I saw the possibility to set the hostname parameter. However, this has the drawback that you need to re-configure axis2.xml from axis2.war and hardwire a hostname into it. It would be much more flexible if the hostname is determined at runtime and used instead of the plain IP address in the WSDL.

Regards, Dietmar

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

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

Nandana Mihindukulasooriya resolved AXIS2-3784.
-----------------------------------------------

    Resolution: Fixed

Changed to take the ip from the request rather than picking the ip of the first network card

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628696#action_12628696 ] 

Nandana Mihindukulasooriya commented on AXIS2-3784:
---------------------------------------------------

Hi Juan,
     Yeah, you can use the "hostname" parameter and it will work with Axis2 1.4/1.4.1 without any changes. The code I committed is here [1] . But not sure it is 100% compatible with 1.4 branch. You have to merge these changes to checkout Axis2 1.4 branch and then make a build for this to work with Axis2 1.4.1. 

thanks,
nandana

[1] - http://svn.apache.org/viewvc?view=rev&revision=686828 

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Dietmar Gaertner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594562#action_12594562 ] 

Dietmar Gaertner commented on AXIS2-3784:
-----------------------------------------

See also: AXIS2-2990, AXIS2-3719

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Boris Milanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641796#action_12641796 ] 

Boris Milanov commented on AXIS2-3784:
--------------------------------------

Hi Nandana, 

    It works. Thanks.

Regards,
Boris

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Sanka Samaranayake (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594833#action_12594833 ] 

Sanka Samaranayake commented on AXIS2-3784:
-------------------------------------------

Hi Dietmar,

You can do that by setting  <parameter name="hostname"  value="myhostname.company.com" /> in the axis2.xml

Sanka

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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] Reopened: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

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

Andreas Veithen reopened AXIS2-3784:
------------------------------------

      Assignee: Andreas Veithen

Reopening this issue since the original fix was apparently not complete.

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>            Assignee: Andreas Veithen
>         Attachments: AXIS2-3784.patch
>
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628640#action_12628640 ] 

Nandana Mihindukulasooriya commented on AXIS2-3784:
---------------------------------------------------

Juan,
   Nope, I fixed this in the trunk. Just go to Subversion Commits in this issue and you will be able to see the commits.

Thanks,
nandana

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641434#action_12641434 ] 

Nandana Mihindukulasooriya commented on AXIS2-3784:
---------------------------------------------------

Boris,
   Nope, this shouldn't be the case. I will have look and see whether this is broken in the trunk. 

thanks,
nandana

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Sanka Samaranayake (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594834#action_12594834 ] 

Sanka Samaranayake commented on AXIS2-3784:
-------------------------------------------

It seems like Deepal has already suggested that. 

Sanka

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Boris Milanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723595#action_12723595 ] 

Boris Milanov commented on AXIS2-3784:
--------------------------------------

Hi,

The fix does not cover the case of user provided wsdl. When requesting a wsdl for a service that has userOriginalWsdl = true, I always receive an ip address for the host.
Seems to me this JIRA should be reopened.

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

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

Andreas Veithen resolved AXIS2-3784.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6

Boris,

I committed your patch. Thanks for contributing!

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>            Assignee: Andreas Veithen
>             Fix For: 1.6
>
>         Attachments: AXIS2-3784.patch
>
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AXIS2-3784) WSDL port address is not correctly generated for machines having multiple network interfaces

Posted by "Juan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628629#action_12628629 ] 

Juan commented on AXIS2-3784:
-----------------------------

I just downloaded the new Axis2 version 1.4.1 and I'm still getting the IP of the machine instead of the request.  Was this fixed in that version? If not, can someone tell me what I need to do to fix it?  I have a deadline in my project and I need this resolved as soon as possible.

Thank you.

> WSDL port address is not correctly generated for machines having multiple network interfaces
> --------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3784
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3784
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4, 1.3
>         Environment: Windows XP Pro, Java 5, Tomcat 6, Axis2 1.4 (release)
>            Reporter: Dietmar Gaertner
>
> WSDL portAddress is filled with one of the machine's IP addresses. The code to get the IP address seems to be org.apache.axis2.transport.http.sever.HTTPUtils.getIpAddress() which always takes the first available network interface's ip address.
> For example http://localhost:8080/axis2/services/Version?wsdl returns a WSDL containing
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://10.20.125.14:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> This may not work on machines which have vmvare installed, or machines having multiple network interfaces or just a laptop which has wireless and wired lan.
> I think the correct way is to use the hostName instead of the ipAddress in the WSDL port address, for example
> ...
> <wsdl:service name="Version">
> 	<wsdl:port name="VersionHttpSoap11Endpoint" binding="ns:VersionSoap11Binding">
> <soap:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap11Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpSoap12Endpoint" binding="ns:VersionSoap12Binding">
> <soap12:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpSoap12Endpoint"/>
> </wsdl:port>
> 	<wsdl:port name="VersionHttpEndpoint" binding="ns:VersionHttpBinding">
> <http:address location="http://myhostname.company.com:8080/axis2/services/Version.VersionHttpEndpoint"/>
> </wsdl:port>
> </wsdl:service>
> ...
> Regards, Dietmar

-- 
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