[
https://issues.apache.org/jira/browse/CXF-4943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Colm O hEigeartaigh resolved CXF-4943.
--------------------------------------
Resolution: Fixed
CXF supports WS-Discovery using 04/2005. You have to call:
client.setVersion10();
> WS Discovery service doesn't discover onvif devices
> ---------------------------------------------------
>
> Key: CXF-4943
> URL: https://issues.apache.org/jira/browse/CXF-4943
> Project: CXF
> Issue Type: Bug
> Components: WS-* Components
> Affects Versions: 2.7.4
> Reporter: Kot Kot
> Priority: Major
>
> I have axis ip camera. It has onvif services enabled.I cant find any services
> on it using this code
> //Use WS-Discovery to find references to services that implement the
> Greeter portType
> WSDiscoveryClient client = new WSDiscoveryClient();
> // client.
> // or: new WSDiscoveryClient("soap.udp://proxyhost:3702");
> client.setDefaultProbeTimeout(10000);
> // List<EndpointReference> references = client.probe(new
> QName("http://www.onvif.org/ver10/network/wsdl", "NetworkVideoTransmitter"));
> List<EndpointReference> references = client.probe();
> client.close();
> // GreeterService service = new GreeterService();
> //loop through all of them and have them greet me.
> for (EndpointReference ref : references) {
> // Greeter g = service.getPort(ref, Greeter.class);
> System.out.println(ref.toString());
> }
> Onvif(onvif.org) devices require ws discovery 04/2005 version. But there
> seems no way to force cxf to use it.
> Onvide
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)