Hi,
We are moving one of our projects from CXF 2.7.12 to 2.7.16.
A number of tests are failing with exceptions like the following:
java.lang.IllegalArgumentException: prefix cannot be "null" when creating a
QName
at javax.xml.namespace.QName.<init>(QName.java:251)
~[na:1.7.0_67]
at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor$HeadersProcessor.process(ReadHeadersInterceptor.java:310)
~[cxf-2.7.16.jar:2.7.16]
at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:190)
~[cxf-2.7.16.jar:2.7.16]
at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:66)
~[cxf-2.7.16.jar:2.7.16]
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
~[cxf-2.7.16.jar:2.7.16]
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
[cxf-2.7.16.jar:2.7.16]
The message being sent looks like
<Envelope
xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body>.....
It looks like ReadHeadersInterceptor.HeadersProcessor expects the elements
(Envelope, Header) to have a prefix.
I can't find any requirement to this effect (that the SOAP namespace should not
be a default namespace) in soap specs.
Am I missing something here, or is it a regression in ReadHeadersInterceptor?
Thanks
Vadim
________________________________
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or
views contained herein are not intended to be, and do not constitute, advice
within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and
Consumer Protection Act. If you have received this communication in error,
please destroy all electronic and paper copies; do not disclose, use or act
upon the information; and notify the sender immediately. Mistransmission is not
intended to waive confidentiality or privilege. Morgan Stanley reserves the
right, to the extent permitted under applicable law, to monitor electronic
communications. This message is subject to terms available at the following
link: http://www.morganstanley.com/disclaimers If you cannot access these
links, please notify us by reply message and we will send the contents to you.
By messaging with Morgan Stanley you consent to the foregoing.