Jan Blizňák created CXF-6172:
--------------------------------
Summary: WS-Discovery should work also in IPv6 only environment
Key: CXF-6172
URL: https://issues.apache.org/jira/browse/CXF-6172
Project: CXF
Issue Type: Bug
Components: Services
Affects Versions: 2.7.14, 3.0.3
Reporter: Jan Blizňák
In current implementation of {{WSDiscoveryServiceImpl}}, endpoint is published
with hardcoded IPv4 multicast address:
{code}udpEndpoint.publish("soap.udp://239.255.255.250:3702");{code}
There is no reason to support only IPv4. Also current implementation does not
support WS-Discovery in IPv6 network when IPv4 is not available at all.
Programatically determining network environment and switching the profile might
not be the best option (network might be temporarily at the moment of trying
down etc.), so at least I would suggest something like .. to allow to choose
IPv4/IPv6 profile by system property, with IPv4 as default. This would also
allow testing IPv6 on dualstack networks.
In {{WSDiscoveryClient}}, although address can be altered by setter or
constructor, the default one can be still switched by proposed system property.
Multicast IPv4 and IPv6 addreses in [WS-Discovery spec, section
3.1.1|http://docs.oasis-open.org/ws-dd/discovery/1.1/os/wsdd-discovery-1.1-spec-os.html#_Toc234231817]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)