mushaofeng / java-ws-discovery

Automatically exported from code.google.com/p/java-ws-discovery
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Default NS Discovery avoid using another one? #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When using this piece of code:

WsDiscoveryServer wsd = WsDiscoveryFactory.createServer();
wsd.start();
WsDiscoveryService service1 = WsDiscoveryFactory.createService(
    new QName("http://www.onvif.org/ver10/device/wsdl", "tds:Device"),
    "onvif://www.onvif.org/name/AnalyticsUnit",
    "http://192.168.20.130:8080/onvif/device_service");
wsd.publish(service1);

I have a discovery server running.

But when I receive "probe" messages with 
"http://schemas.xmlsoap.org/ws/2005/04/discovery" namespace, the application 
throws the following exception: 

"com.ms.wsdiscovery.exception.WsDiscoveryXMLException: Unable to unmarshal SOAP 
document"
... 
unexpected element (uri:"http://schemas.xmlsoap.org/ws/2005/04/discovery", 
local:"Probe").
... 
expected elements are ... 
<{http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01}Probe> ...

So how can I do in order to support both SOAPOverUDP11 & SOAPOverUDPDraft2004 
at the same time for the same discovery service? 

I'm not responsible of the webservice clients (could be thousand of different 
devices on the market)

Thank you for your help

H. Terelle

Original issue reported on code.google.com by hugotere...@gmail.com on 22 Mar 2012 at 4:08