cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ffrench <>
Subject Namespace Failure in WS-Discovery
Date Wed, 09 Dec 2015 04:31:52 GMT
Using the ONVIF Test utility (from  to generate WS-Discovery
probe messages to a slightly modified CXF smaples/ws_discovery test program
ended up in getting the following message from JAXBUtils.unmarshall() call
"javax.xml.bind.UnmarshalException: prefix dn is not bound to a namespace".

The modifications to the sample program were to define appropriate types and
scopes so that WS-Discovery service could work for implementing an ONVIF

The probe message from the ONVIF Test Utility is:
<?xml version="1.0" encoding="utf-8"?><Envelope

And so "dn" is defined in the Envelope but it looks to be that only the Body
of the SOAP message is passed to the invoke routine in  Since "dn" is not defined as a namespace in
the Body of the message, the call to JAXBUtils.unmarshall() is failing. 

So, any recommendations on how to fix this since cannot change the ONVIF
test utility?

Currently thinking about adding an interceptor and copying any namespace
definitions in the Envelope into the body.  This is slightly messy and so
looking for a cleaner solution.  Any possibility of a simple change in to address this?

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message