Hit send too soon…. On Apr 4, 2013, at 1:25 PM, Daniel Kulp <[email protected]> wrote:
> > On Apr 4, 2013, at 10:06 AM, Pampolini Matteo <[email protected]> > wrote: >> Hello there, >> >> I'm trying to write a simple application to discover ONVIF devices in my >> network. > > Very interesting… Wasn't even aware of them. If anyone would like to buy > me one, I'd be more that happy to experiment more to get it working…. :-) > > >> Code is mainly based on ws_discovery sample with the following simple >> difference: >> >> List<EndpointReference> references = client.probe(new >> QName("http://www.onvif.org/ver10/network/wsdl"<http://www.onvif.org/ver10/network/wsdl>, >> "NetworkVideoTransmitter")); >> >> I'm writing because it does not work, of course. I do not even see (through >> WireShark) multicast packets being sent over my network interface, >> can anyone please help me? Please note that ONVIF is based on WS-Discovery >> version 2005/04. > > There's two parts to this: 1) getting the UDP packets out 2) WS-Discovery > 2005/04. > > No idea what to do about (1). Does the ws-discovery sample work? If you run the sample with wireshark, does that get the packets? I guess that would be the starting point for looking at that. (2) is definitely a big issue. I'd likely try and use the CXF transformation feature to map the namespaces and see if that works, but it obviously won't work if (1) cannot be resolved. -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
