You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Kot Kot (JIRA)" <ji...@apache.org> on 2013/04/04 04:12:13 UTC

[jira] [Updated] (CXF-4943) WS Discovery service doesn't discover onvif devices

     [ https://issues.apache.org/jira/browse/CXF-4943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kot Kot updated CXF-4943:
-------------------------

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

  was:Onvif(onvif.org) devices require ws discovery 04/2005 version. But there seems no way to force cxf to use it.

    
> 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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira